Update 'freenas_network_unlock.py'
This commit is contained in:
@@ -41,7 +41,11 @@ for volume in VOLUMES.json():
|
||||
auth=('root', '{}'.format(config.ROOT_PASSWORD)),
|
||||
verify='{}'.format(config.CA_CERT_PATH),
|
||||
)
|
||||
print(response.status_code)
|
||||
print(response.text)
|
||||
if response.status_code:
|
||||
logging.info('Pool {} was unlocked successfully'.format(volume['name']))
|
||||
else:
|
||||
logging.error('Pool {} was NOT unlocked successfully'.format(volume['name']))
|
||||
else:
|
||||
logging.debug('Pool {} is already unlocked'.format(volume['name']))
|
||||
#else:
|
||||
#print("Host,{}, is not online".format(config.HOSTNAME))
|
||||
Reference in New Issue
Block a user