Skip to content

Commit

Permalink
fix: not setting empty values
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Jose Leiva Palomo <[email protected]>
  • Loading branch information
AleJo2995 committed Sep 11, 2023
1 parent 5862a26 commit 8eff307
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trestle/core/catalog/catalog_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def read_additional_content(
if param_dict[const.PROFILE_VALUES] != [] and param_dict[const.PROFILE_VALUES] is not None:
if not write_mode and '<REPLACE_ME>' in param_dict[const.PROFILE_VALUES]:
param_dict[const.PROFILE_VALUES].remove('<REPLACE_ME>')
param_dict[const.VALUES] = param_dict[const.PROFILE_VALUES]
if param_dict[const.PROFILE_VALUES] != [] and param_dict[const.PROFILE_VALUES] is not None:
param_dict[const.VALUES] = param_dict[const.PROFILE_VALUES]
if not write_mode:
param_dict.pop(const.PROFILE_VALUES)
final_param_dict[param_id] = param_dict
Expand Down

0 comments on commit 8eff307

Please sign in to comment.