Skip to content

Commit

Permalink
Added basic support for options accepting str values (v0.1.5).
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbrawl committed Jan 1, 2020
1 parent f993ef2 commit b238a39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/galaxyutils/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ def _parse_config(config) -> Dict[str, Any]:
if option[0] in options_dict:
if options_dict[option[0]]['str_option'] and option[1] != "None":
return_dict[option[0]] = option[1]
log.debug(f"GALAXY_CONFIG_OPTION: The option {option[0]} is now set to {option[1]}.")
if option[1] != "":
log.debug(f"GALAXY_CONFIG_OPTION: The option {option[0]} is now set to {option[1]}.")
else:
for o in options_dict[option[0]]['allowed']:
if str(option[1]).lower() == str(o).lower() and str(option[1]) != \
Expand Down

0 comments on commit b238a39

Please sign in to comment.