Skip to content

Commit

Permalink
fix: do not overwrite existing labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ccwienk committed Jan 17, 2025
1 parent 21df43d commit c98fb1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ocm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ def append(parsed):

def inject_labels(artefact: dict, labels):
if not 'labels' in artefact:
artefact['labels'] = []

artefact['labels'] = labels
artefact['labels'] = labels
else:
artefact['labels'].extend(labels)

if isinstance(obj, list):
for o in obj:
Expand Down

0 comments on commit c98fb1a

Please sign in to comment.