Skip to content

Commit

Permalink
Merge "[glance] Allow to skip handling images by enabled flag"
Browse files Browse the repository at this point in the history
  • Loading branch information
MOS CI authored and Gerrit Code Review committed Dec 3, 2024
2 parents c75a0a5 + 354658e commit 6a313c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/openstack/glance/templates/bin/_bootstrap.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ ost = openstack.connect()

for image_name, image in STRUCTURED_IMAGES.items():
image_name = image.pop("name", image_name)
if not image.get("enabled", True):
LOG.info("Skipping handling image {image_name} as its not enabled.")
continue
LOG.info(f"Handling image: {image_name}")

ost_image = ost.image.find_image(image_name)
checksum = image.pop("checksum", None)
url = image["source_url"]
Expand Down

0 comments on commit 6a313c0

Please sign in to comment.