diff --git a/truenas_kmip_unlock.py b/truenas_kmip_unlock.py index 855b0b1..2a649da 100644 --- a/truenas_kmip_unlock.py +++ b/truenas_kmip_unlock.py @@ -487,9 +487,9 @@ if __name__ == '__main__': logger.debug('Restarting the {} service'.format(services_to_restart[service_to_restart])) response = request('service/restart', api_key, 'POST', {'service': service_to_restart}) if response['ok']: - logger.debug('Service {} was restarted successfully'.format(services_to_restart[service_to_restart]) + logger.debug('Service {} was restarted successfully'.format(services_to_restart[service_to_restart])) else: - logger.error('Service {} was NOT restarted'.format(services_to_restart[service_to_restart]) + logger.error('Service {} was NOT restarted'.format(services_to_restart[service_to_restart])) else: logger.error('Dataset {} was NOT unlocked'.format(dataset['name'])) else: