From a661fec105c6328254dcdbf1e6a9f50bca1fd78f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 30 Dec 2019 09:34:45 -0500 Subject: [PATCH] Handle boolean config values properly --- client-api/pvc-api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client-api/pvc-api.py b/client-api/pvc-api.py index d643820a..79c760fb 100755 --- a/client-api/pvc-api.py +++ b/client-api/pvc-api.py @@ -61,14 +61,14 @@ except Exception as e: try: # Create the config object config = { - 'debug': o_config['pvc']['debug'], + 'debug': strtobool(o_config['pvc']['debug']), 'coordinators': o_config['pvc']['coordinators'], 'listen_address': o_config['pvc']['api']['listen_address'], 'listen_port': int(o_config['pvc']['api']['listen_port']), 'auth_enabled': strtobool(o_config['pvc']['api']['authentication']['enabled']), 'auth_secret_key': o_config['pvc']['api']['authentication']['secret_key'], 'auth_tokens': o_config['pvc']['api']['authentication']['tokens'], - 'ssl_enabled': o_config['pvc']['api']['ssl']['enabled'], + 'ssl_enabled': strtobool(o_config['pvc']['api']['ssl']['enabled']), 'ssl_key_file': o_config['pvc']['api']['ssl']['key_file'], 'ssl_cert_file': o_config['pvc']['api']['ssl']['cert_file'], 'database_host': o_config['pvc']['provisioner']['database']['host'],