Fixes #34: Change Vendor Delimiter
This commit is contained in:
minitriga 2021-11-24 09:46:28 +00:00 committed by GitHub
commit 8f3a4b4fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -58,10 +58,10 @@ To import only device by APC, for example:
./nb-dt-import.py --vendors apc
```
`--vendors` can also accept a space separated list of vendors if you want to import multiple.
`--vendors` can also accept a comma separated list of vendors if you want to import multiple.
```
./nb-dt-import.py --vendors apc juniper
./nb-dt-import.py --vendors apc,juniper
```
## Docker build
@ -80,7 +80,7 @@ The container supports the following env var as configuration :
- `REPO_BRANCH`, the branch to check out if appropriate, defaults to master.
- `NETBOX_URL`, used to access netbox
- `NETBOX_TOKEN`, token for accessing netbox
- `VENDORS`, a space-separated list of vendors to import (defaults to None)
- `VENDORS`, a comma-separated list of vendors to import (defaults to None)
To run :

View File

@ -9,7 +9,7 @@ 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()
VENDORS = os.getenv("VENDORS", "").split(",")
# optionally load device types through a space separated list as env var
SLUGS = os.getenv("SLUGS", "").split()