Fix files to make test can pass linting check
Change-Id: Id13a108f20937b542733c5ec9fbf82ee8f004801
diff --git a/scripts/netbox_hosts.py b/scripts/netbox_hosts.py
index 9e085f8..e968e8e 100644
--- a/scripts/netbox_hosts.py
+++ b/scripts/netbox_hosts.py
@@ -143,7 +143,8 @@
continue
- # require DNS names to only use ASCII characters (alphanumeric, lowercase, with dash/period)
+ # require DNS names to only use ASCII characters
+ # (alphanumeric, lowercase, with dash/period)
# _'s are used in SRV/TXT records, but in general use aren't recommended
dns_name = re.sub("[^a-z0-9.-]", "-", name.lower(), 0, re.ASCII)
@@ -170,7 +171,8 @@
elif "." in value["dns_name"]:
logger.warning(
- "Device '%s' has a IP assigned DNS name '%s' outside the prefix extension: '%s', ignoring",
+ "Device '%s' has a IP assigned DNS name '%s' outside "
+ + "the prefix extension: '%s', ignoring",
name,
value["dns_name"],
extension,