fixes issue with tags retrieved from vCenter #290

This commit is contained in:
ricardo.bartels@telekom.de
2023-05-26 09:12:08 +02:00
parent b899f4869f
commit a9af6c603f
+5 -4
View File
@@ -676,10 +676,11 @@ class VMWareHandler(SourceBase):
log.error(f"Unable to retrieve vCenter tag '{tag_id}' for '{obj.name}': {e}")
continue
tag_list.append(self.inventory.add_update_object(NBTag, data={
"name": tag_name,
"description": tag_description
}))
if tag_name is not None:
tag_list.append(self.inventory.add_update_object(NBTag, data={
"name": tag_name,
"description": tag_description
}))
return tag_list