From 0f64e71cdf225b7402c65147aa7313f4e4734be7 Mon Sep 17 00:00:00 2001 From: rizlas Date: Fri, 29 Sep 2023 12:43:15 +0200 Subject: [PATCH] feat: add indication about synced source in tags description coming from vmware --- module/sources/vmware/connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/sources/vmware/connection.py b/module/sources/vmware/connection.py index f45b30e..1091504 100644 --- a/module/sources/vmware/connection.py +++ b/module/sources/vmware/connection.py @@ -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