Skip to content

Commit

Permalink
🎨 Don't drop _s from before desc-
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Nov 4, 2022
1 parent 1b73d83 commit cfe100f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CPAC/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def create_id_string(unique_id, resource, scan_id=None, template_desc=None,
"""

if atlas_id:
if '_' in atlas_id:
if not (atlas_id.count('_') == 1 and '_desc-' in atlas_id):
atlas_id = atlas_id.replace('_', '')
resource = f'atlas-{atlas_id}_{resource}'

Expand Down

0 comments on commit cfe100f

Please sign in to comment.