Skip to content

Commit

Permalink
Merge pull request #355 from ricardobranco777/skip_none_tags
Browse files Browse the repository at this point in the history
Azure: Check if version.tags is None
  • Loading branch information
asmorodskyi committed Feb 25, 2024
2 parents d9205fb + d90e9c2 commit b2805bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocw/lib/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def cleanup_gallery_img_versions(self) -> None:
continue
for version in self.compute_mgmt_client().gallery_image_versions.list_by_gallery_image(
self.__resource_group, gallery.name, image.name):
if Instance.TAG_IGNORE in version.tags:
if version.tags is not None and Instance.TAG_IGNORE in version.tags:
self.log_info(f"Image version {version} for image {image} in gallery {self.__gallery} has {Instance.TAG_IGNORE} tag")
continue
properties = self.get_resource_properties(version.id)
Expand Down

0 comments on commit b2805bb

Please sign in to comment.