Update 'freenas_network_unlock.py'

This commit is contained in:
2019-11-12 10:45:31 -05:00
parent b4f5afb5e7
commit a0832071af

View File

@@ -56,7 +56,7 @@ logging.debug('POOL Information: {}'.format(POOLS)
# verify='{}'.format(config.CA_CERT_PATH),
#)
for pool in POOLS.json():
for pool in POOLS:
if volume['is_decrypted'] == False:
logging.info('Pool {} is locked'.format(pool['name']))
response = requests.post(