Fix files to make test can pass linting check
Change-Id: Id13a108f20937b542733c5ec9fbf82ee8f004801
diff --git a/scripts/tenant_validator.py b/scripts/tenant_validator.py
index baa4a79..86c9702 100644
--- a/scripts/tenant_validator.py
+++ b/scripts/tenant_validator.py
@@ -6,11 +6,13 @@
# tenant_validator.py
# Grab the data from Tenant and check if the information is invalidate
+from __future__ import absolute_import
+
import re
+import sys
import yaml
import logging
import argparse
-import nbhelper
import pynetbox
import requests
import netaddr
@@ -30,7 +32,8 @@
# A Regex rule to identify if device name is a valid domain
fqdn_regex = re.compile(
- "^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$"
+ r"^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*"
+ + r"([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$"
)