Merge pull request #1248 from BigRoy/chore/remove_duplicate_code_get_legacy_product_name

This commit is contained in:
Roy Nieterau 2025-04-17 12:07:45 +02:00 committed by GitHub
commit c1d7cde34d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -660,14 +660,6 @@ def _get_legacy_product_name_and_group(
warnings.warn("Using legacy product name for renders",
DeprecationWarning)
if not source_product_name.startswith(product_type):
resulting_group_name = '{}{}{}{}{}'.format(
product_type,
task_name[0].upper(), task_name[1:],
source_product_name[0].upper(), source_product_name[1:])
else:
resulting_group_name = source_product_name
# create product name `<product type><Task><Product name>`
if not source_product_name.startswith(product_type):
resulting_group_name = '{}{}{}{}{}'.format(