mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2025-01-07 14:09:21 +01:00
Merge pull request #45 from dalrrard/patch-1
Fix import failure when no vendor specified
This commit is contained in:
commit
94d9ec13d2
@ -8,8 +8,8 @@ NETBOX_URL = os.getenv("NETBOX_URL")
|
||||
NETBOX_TOKEN = os.getenv("NETBOX_TOKEN")
|
||||
IGNORE_SSL_ERRORS = (os.getenv("IGNORE_SSL_ERRORS", "False") == "True")
|
||||
|
||||
# optionnally load vendors through a space separated list as env var
|
||||
VENDORS = os.getenv("VENDORS", "").split(",")
|
||||
# optionally load vendors through a comma separated list as env var
|
||||
VENDORS = list(filter(None, os.getenv("VENDORS", "").split(",")))
|
||||
|
||||
# optionally load device types through a space separated list as env var
|
||||
SLUGS = os.getenv("SLUGS", "").split()
|
||||
|
Loading…
Reference in New Issue
Block a user