updated to use pool id instead of dataset id which is not int
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user