Skip to content

Commit

Permalink
Minor fix when no defaults are definded.
Browse files Browse the repository at this point in the history
  • Loading branch information
seriva committed Apr 28, 2021
1 parent 80475b3 commit e333c39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/epicli/cli/helpers/config_merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def merge_with_defaults(provider, feature_kind, config_selector, docs):
default_doc = select_first(files, lambda x: x.name == 'default')
if default_config is not None:
merge_objdict(default_doc, default_config)
default_config['version'] = VERSION
merge_objdict(default_config, config_spec)
return default_config
merge_objdict(default_doc, config_spec)
default_doc['version'] = VERSION
return default_doc
return config_spec

0 comments on commit e333c39

Please sign in to comment.