Skip to content

Commit

Permalink
Update get_image_label return value
Browse files Browse the repository at this point in the history
  • Loading branch information
lipoja committed Jun 12, 2023
1 parent 541f63a commit d4bcce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iib/workers/tasks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ def get_all_index_images_info(
return infos


def get_image_label(pull_spec: str, label: str) -> Optional[str]:
def get_image_label(pull_spec: str, label: str) -> str:
"""
Get a specific label from the container image.
Expand All @@ -1095,7 +1095,7 @@ def get_image_label(pull_spec: str, label: str) -> Optional[str]:
:rtype: str
"""
log.debug('Getting the label of %s from %s', label, pull_spec)
return get_image_labels(pull_spec).get(label)
return get_image_labels(pull_spec).get(label, '')


def verify_labels(bundles: List[str]) -> None:
Expand Down

0 comments on commit d4bcce8

Please sign in to comment.