Skip to content

Commit

Permalink
WIP: Better handle loading of configuration parameter types
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastientourbier committed Feb 26, 2021
1 parent 26dbd5b commit 9bd70a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmtklib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def set_pipeline_attributes_from_config(pipeline, config, debug=True):
conf_value = bool(conf_value)
elif isinstance(getattr(sub_config, sub_key), list):
conf_value = eval(conf_value)
elif isinstance(getattr(stage.config, key), int):
elif isinstance(getattr(sub_config, sub_key), int):
conf_value = int(conf_value)
if debug:
print_warning('Converted to int')
Expand Down

0 comments on commit 9bd70a5

Please sign in to comment.