Update 'freenas_network_unlock.py'
This commit is contained in:
@@ -56,7 +56,7 @@ logging.debug('POOL Information: {}'.format(POOLS)
|
|||||||
# verify='{}'.format(config.CA_CERT_PATH),
|
# verify='{}'.format(config.CA_CERT_PATH),
|
||||||
#)
|
#)
|
||||||
|
|
||||||
for pool in POOLS.json():
|
for pool in POOLS:
|
||||||
if volume['is_decrypted'] == False:
|
if volume['is_decrypted'] == False:
|
||||||
logging.info('Pool {} is locked'.format(pool['name']))
|
logging.info('Pool {} is locked'.format(pool['name']))
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
|
|||||||
Reference in New Issue
Block a user