mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2025-08-09 13:55:02 +02:00
Add SLUG option to specify a space-separated list of device_type slugs to import
This commit is contained in:
@ -10,6 +10,10 @@ 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 device types through a space separated list as env var
|
||||
SLUGS = os.getenv("SLUGS", "").split()
|
||||
|
||||
|
||||
MANDATORY_ENV_VARS = ["REPO_URL", "NETBOX_URL", "NETBOX_TOKEN"]
|
||||
|
||||
for var in MANDATORY_ENV_VARS:
|
||||
|
Reference in New Issue
Block a user