mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2024-11-21 23:23:17 +01:00
parent
0f79f452c4
commit
d3916aa905
@ -478,7 +478,7 @@ class DeviceTypes:
|
||||
headers = { "Authorization": f"Token {token}" }
|
||||
|
||||
files = { i: (os.path.basename(f), open(f,"rb") ) for i,f in images.items() }
|
||||
response = requests.patch(url, headers=headers, files=files)
|
||||
response = requests.patch(url, headers=headers, files=files, verify=False)
|
||||
|
||||
self.handle.log( f'Images {images} updated at {url}: {response}' )
|
||||
self.counter["images"] += len(images)
|
||||
|
Loading…
Reference in New Issue
Block a user