mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2025-01-09 06:58:30 +01:00
Update nb-dt-import.py
fixed AttributeError when using --vendors switch
This commit is contained in:
parent
5cb2b033a3
commit
91e78f36e7
@ -352,7 +352,7 @@ if args.vendors is None:
|
||||
|
||||
else:
|
||||
print("Vendor Specified, Gathering All Matching Device-Types")
|
||||
files, vendors = getFiles(args.vendor)
|
||||
files, vendors = getFiles(args.vendors)
|
||||
print(str(len(vendors)) + " Vendors Found")
|
||||
print(str(len(files)) + " Device-Types Found")
|
||||
deviceTypes = readYAMl(files)
|
||||
|
Loading…
Reference in New Issue
Block a user