Skip to content

Commit 94d9ec1

Browse files
authored
Merge pull request #45 from dalrrard/patch-1
Fix import failure when no vendor specified
2 parents 625bdba + f0c53e2 commit 94d9ec1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
NETBOX_TOKEN = os.getenv("NETBOX_TOKEN")
99
IGNORE_SSL_ERRORS = (os.getenv("IGNORE_SSL_ERRORS", "False") == "True")
1010

11-
# optionnally load vendors through a space separated list as env var
12-
VENDORS = os.getenv("VENDORS", "").split(",")
11+
# optionally load vendors through a comma separated list as env var
12+
VENDORS = list(filter(None, os.getenv("VENDORS", "").split(",")))
1313

1414
# optionally load device types through a space separated list as env var
1515
SLUGS = os.getenv("SLUGS", "").split()

0 commit comments

Comments
 (0)