Skip to content

Commit

Permalink
fix: Correct for loop to set node_factors for a cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
lperdereau committed Oct 29, 2024
1 parent a9ac1c7 commit 1fb2b60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pvecontrol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,9 @@ def main():
sys.exit(1)
logging.debug('clusterconfig is %s'%clusterconfig)

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

proxmoxcluster = PVECluster(
clusterconfig.name,
Expand Down

0 comments on commit 1fb2b60

Please sign in to comment.