Skip to content

Commit

Permalink
Merge pull request #391 from vmichals/develop
Browse files Browse the repository at this point in the history
Show proper yaml syntax in resolve_config deprecation warnings containing None
  • Loading branch information
Thomas Schweizer authored Jun 16, 2020
2 parents e68a41f + f77d29b commit fd950cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/orion/core/io/resolve_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ def fetch_config(args):
if backward_value is not None:
log.warning(
'(DEPRECATED) Option `%s` and will be removed in v0.3. '
'Use instead the option' '\n%s:\n %s: %s',
subkey, key, subkey, repr(backward_value))
'Use instead the option' '\n%s:\n %s:\n %s',
subkey, key, subkey, yaml.dump(backward_value, indent=6))
value = tmp_config.get(key, {}).pop(subkey, backward_value)
if value is not None:
local_config.setdefault(key, {})
Expand Down

0 comments on commit fd950cc

Please sign in to comment.