Skip to content

Commit

Permalink
Update scripts/update_images.py
Browse files Browse the repository at this point in the history
Co-authored-by: Dominik Rosiek <[email protected]>
  • Loading branch information
kasia-kujawa and sumo-drosiek committed Jun 19, 2024
1 parent 9551011 commit 4e7df07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/update_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ def generate_image_lists(image_list_file: str) -> tuple[list, list]:
related_images = []
image_envs = []
for image_with_tag, image_with_sha256 in pairwise(lines):
component_and_tag = image_with_tag.removeprefix(RED_HAT_REGISTRY).split(":")
component = component_and_tag[0]
tag = component_and_tag[1]
component, tag = image_with_tag.removeprefix(RED_HAT_REGISTRY).split(":")
env_name = "{}{}".format(ENV_PREFIX, component.upper().replace("-", "_"))
related_images.append({"name": env_name, "image": image_with_sha256 })
image_envs.append({"name": env_name, "value": image_with_sha256 })
Expand Down

0 comments on commit 4e7df07

Please sign in to comment.