mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2025-01-09 06:58:30 +01:00
Merge pull request #15 from FlorianHeigl/patch-2
match 'vendors' arg between docs and code
This commit is contained in:
commit
5cb2b033a3
@ -11,7 +11,7 @@ import settings
|
||||
|
||||
REPO_URL = settings.REPO_URL
|
||||
parser = argparse.ArgumentParser(description='Import Netbox Device Types')
|
||||
parser.add_argument('--vendor', nargs='+',
|
||||
parser.add_argument('--vendors', nargs='+',
|
||||
help="List of vendors to import eg. apc cisco")
|
||||
parser.add_argument('--url', '--git', default=REPO_URL,
|
||||
help="Git URL with valid Device Type YAML files")
|
||||
@ -341,8 +341,8 @@ except exc.GitCommandError as error:
|
||||
|
||||
nb = pynetbox.api(nbUrl, token=nbToken)
|
||||
|
||||
if args.vendor is None:
|
||||
print("No Vendor Specified, Gathering All Device-Types")
|
||||
if args.vendors is None:
|
||||
print("No Vendors Specified, Gathering All Device-Types")
|
||||
files, vendors = getFiles()
|
||||
print(str(len(vendors)) + " Vendors Found")
|
||||
print(str(len(files)) + " Device-Types Found")
|
||||
|
Loading…
Reference in New Issue
Block a user