diff --git a/truenas_kmip_unlock.py b/truenas_kmip_unlock.py index f2e389f..99fa80c 100644 --- a/truenas_kmip_unlock.py +++ b/truenas_kmip_unlock.py @@ -424,8 +424,7 @@ if __name__ == '__main__': sys.exit(-1) # run the decryption of the keys and unlock the pool config = read_config_file(secrets_config_file) - api_key = config['API Key'] - logger.debug("API Key: {}".format(api_key)) + api_key = config['API Key'] API_POOLS = request('pool', api_key)['response'] API_DATASETS = request('pool/dataset', api_key)['response'] for pool_dataset_name in config['Pools']: