From 21a71fd865919a92ba7410b58c995cf4b83b5ea9 Mon Sep 17 00:00:00 2001 From: Mika Busch Date: Wed, 17 Jun 2020 10:30:50 +0200 Subject: [PATCH 1/2] Use description instead of comments Tags use a description field instead of a comments field. This Field is also limited to 200 characters --- run.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/run.py b/run.py index 23601b2..8e60d7f 100644 --- a/run.py +++ b/run.py @@ -1550,9 +1550,8 @@ def verify_dependencies(self): "name": "Orphaned", "slug": "orphaned", "color": "607d8b", - "comments": "This applies to objects that have become " - "orphaned. The source system which has " - "previously provided the object no longer " + "description": "The source system which has previously" + "provided the object no longer " "states it exists.{}".format( " An object with the 'Orphaned' tag will " "remain in this state until it ages out " @@ -1562,14 +1561,14 @@ def verify_dependencies(self): { "name": self.vc_tag, "slug": format_slug(self.vc_tag), - "comments": "Objects synced from vCenter host " + "description": "Objects synced from vCenter host " "{}. Be careful not to modify the name or " "slug.".format(self.vc_tag) }, { "name": "vCenter", "slug": "vcenter", - "comment": "Created and used by vCenter NetBox sync." + "description": "Created and used by vCenter NetBox sync." }], "manufacturers": [ {"name": "VMware", "slug": "vmware"}, From 76e2efdf686365ceca3361c8dfd61c4b73541e9d Mon Sep 17 00:00:00 2001 From: Mika Busch Date: Mon, 22 Jun 2020 12:12:18 +0200 Subject: [PATCH 2/2] Fixed Pylinter errors --- run.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/run.py b/run.py index 8e60d7f..2c535be 100644 --- a/run.py +++ b/run.py @@ -1551,19 +1551,19 @@ def verify_dependencies(self): "slug": "orphaned", "color": "607d8b", "description": "The source system which has previously" - "provided the object no longer " - "states it exists.{}".format( - " An object with the 'Orphaned' tag will " - "remain in this state until it ages out " - "and is automatically removed." - ) if settings.NB_PRUNE_ENABLED else "" + "provided the object no longer " + "states it exists.{}".format( + " An object with the 'Orphaned' tag will " + "remain in this state until it ages out " + "and is automatically removed." + ) if settings.NB_PRUNE_ENABLED else "" }, { "name": self.vc_tag, "slug": format_slug(self.vc_tag), "description": "Objects synced from vCenter host " - "{}. Be careful not to modify the name or " - "slug.".format(self.vc_tag) + "{}. Be careful not to modify the name or " + "slug.".format(self.vc_tag) }, { "name": "vCenter",