Skip to content

Commit

Permalink
T6953: simplify config handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nvollmar committed Dec 20, 2024
1 parent 8092236 commit 78d08b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conf_mode/service_monitoring_prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def get_config(config=None):
if not conf.exists(base):
return None

monitoring = conf.get_config_dict(base, key_mangling=('-', '_'), get_first_key=True)
monitoring = conf.merge_defaults(monitoring, recursive=True)
monitoring = conf.get_config_dict(base, key_mangling=('-', '_'), get_first_key=True,
with_recursive_defaults=True)

tmp = is_node_changed(conf, base + ['node-exporter', 'vrf'])
if tmp:
Expand Down

0 comments on commit 78d08b2

Please sign in to comment.