From d90e9c2f698463f94b2900a55e5da0c5f19318bd Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Wed, 21 Feb 2024 10:13:07 +0100 Subject: [PATCH] Azure: Check if version.tags is None --- ocw/lib/azure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocw/lib/azure.py b/ocw/lib/azure.py index 5e5a6583..f92f51a2 100644 --- a/ocw/lib/azure.py +++ b/ocw/lib/azure.py @@ -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)