Skip to content

Commit

Permalink
fix: Correct clusterconfig default value overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
lperdereau authored and lcaflc committed Nov 27, 2024
1 parent 9d02b41 commit aa30cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pvecontrol/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ def set_config(cluster_name):
logging.debug('clusterconfig is %s'%clusterconfig)

for k, v in validconfig.node.items():
clusterconfig.node[k] = clusterconfig.node.get(k, v)
clusterconfig.node[k] = clusterconfig.node[k] if clusterconfig.node.get(k) else v

return clusterconfig

0 comments on commit aa30cbf

Please sign in to comment.