From 78c9c6b40970d7b89bb2b00ee694aa1815c5fb87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Solbj=C3=B8rg?= Date: Mon, 13 Mar 2023 20:57:20 +0100 Subject: fix(nb2gondul): Don't treat text as markdown-styled in Scripts overview --- tools/netbox/scripts/netbox2gondul/netbox2gondul.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/netbox/scripts/netbox2gondul/netbox2gondul.py') diff --git a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py index 81d41de..c417e8e 100644 --- a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py +++ b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py @@ -10,6 +10,7 @@ from ipam.lookups import NetContainsOrEquals import ipaddress import json +import re import requests from requests.models import HTTPBasicAuth @@ -25,10 +26,10 @@ class Netbox2Gondul(Script): class Meta: name = "Sync NetBox to Gondul" - description = """ + description = re.sub(r'^\s*', '', """ Can be done for a single network/device or a full sync. Note that this will not do 'renames' of devices, so it is best used for updating device information. If a device is selected, it will also sync the required networks as long as they are set up correctly (Primary IP addresses for the Switch & VLAN configured for the Prefix of those IP Addresses). - """ + """) field_order = ['site_name', 'switch_count', 'switch_model'] switch = ObjectVar( -- cgit v1.2.3