Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 :

Expand Down
2 changes: 1 addition & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
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()
Expand Down