Merge pull request #178 from gyptazy/fix/174-honor-balancing-activation-value

fix: Honor the value when balancing should not be performed and stop balancing.
This commit is contained in:
Florian
2025-04-07 15:41:02 +02:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
fixed:
- Honor the value when balancing should not be performed and stop balancing. [#174]

View File

@@ -71,7 +71,7 @@ def main():
Helper.log_node_metrics(proxlb_data, init=False)
# Perform balancing actions via Proxmox API
if not cli_args.dry_run:
if not cli_args.dry_run or not proxlb_data["meta"]["balancing"].get("enable", False):
Balancing(proxmox_api, proxlb_data)
# Validate if the JSON output should be