updated to use pool id instead of dataset id which is not int

This commit is contained in:
2023-07-26 15:16:08 -04:00
parent 4aeec47d1b
commit bb1a0616ed

View File

@@ -482,7 +482,7 @@ if __name__ == '__main__':
logger.info('Dataset {} was unlocked successfully'.format(dataset['name']))
# restart services since the dataset was unlocked
logger.info('Restarting services')
services_to_restart = request('/pool/unlock_services_restart_choices', api_key, "POST", dataset['id'])['response']
services_to_restart = request('/pool/unlock_services_restart_choices', api_key, "POST", pool['id'])['response']
for service_to_restart in services_to_restart:
logger.debug('Restarting the {} service'.format(services_to_restart[service_to_restart]))
response = request('service/restart', api_key, 'POST', {'service': service_to_restart})