Skip to content

Commit

Permalink
Azure: Check if version.tags is None
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Feb 21, 2024
1 parent d9205fb commit d90e9c2
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 d90e9c2

Please sign in to comment.