Skip to content
Snippets Groups Projects
Commit 4a112754 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

WIP: Check required config param are not empty

parent 23e250bb
No related branches found
No related tags found
2 merge requests!21Check required config param are not empty,!18Release v2.1.0
This commit is part of merge request !18. Comments created here will be created in the context of that merge request.
......@@ -36,12 +36,14 @@ def parse_config(config_file):
"""
config_dict = load_yaml(config_file)
if isinstance(config_dict, dict):
#logging.debug("Config dictionary: {0}".format(config_dict))
return config_dict
else:
if not isinstance(config_dict, dict):
logging.critical("Config yaml file is not a dictionary" % config_file)
sys.exit()
else:
#logging.debug("Config dictionary: {0}".format(config_dict))
#required_param = [constants.]
#check_not_empty_param()
return config_dict
def parse_input(input_file):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment