Update 'freenas_network_unlock.py'
This commit is contained in:
@@ -28,10 +28,10 @@ VOLUMES = requests.get(
|
||||
for volume in VOLUMES:
|
||||
if volume['is_decrypted'] == False:
|
||||
response = request.post(
|
||||
'https://{}/api/v1.0/storage/volume/{}/unlock/'.format(config.HOSTNAME,volume['name']),
|
||||
data={'passphrase': '{}'.format(config.POOLS[volume['name']])},
|
||||
auth=('root', '{}'.format(config.ROOT_PASSWORD)),
|
||||
verify='{}'.format(config.CA_CERT_PATH),
|
||||
'https://{}/api/v1.0/storage/volume/{}/unlock/'.format(config.HOSTNAME,volume['name']),
|
||||
data={'passphrase': '{}'.format(config.POOLS[volume['name']])},
|
||||
auth=('root', '{}'.format(config.ROOT_PASSWORD)),
|
||||
verify='{}'.format(config.CA_CERT_PATH),
|
||||
).json()
|
||||
print(response)
|
||||
#else:
|
||||
|
||||
Reference in New Issue
Block a user