mirror of
https://github.com/bb-Ricardo/netbox-sync.git
synced 2026-01-19 23:40:26 -06:00
feat: add indication about synced source in tags description coming from vmware
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user