feat: add indication about synced source in tags description coming from vmware

This commit is contained in:
rizlas
2023-09-29 12:43:15 +02:00
parent 565f50f8de
commit 0f64e71cdf

View File

@@ -676,7 +676,8 @@ class VMWareHandler(SourceBase):
# noinspection PyBroadException
try:
tag_name = self.tag_session.tagging.Tag.get(tag_id).name
tag_description = self.tag_session.tagging.Tag.get(tag_id).description
tag_prefix_source = f"NetBox-synced {self.name}"
tag_description = f"{tag_prefix_source} {self.tag_session.tagging.Tag.get(tag_id).description}"
except Exception as e:
log.error(f"Unable to retrieve vCenter tag '{tag_id}' for '{obj.name}': {e}")
continue