diff --git a/.changelogs/1.1.1/174_honor_balancing_activation_value.yml b/.changelogs/1.1.1/174_honor_balancing_activation_value.yml new file mode 100644 index 0000000..f4581da --- /dev/null +++ b/.changelogs/1.1.1/174_honor_balancing_activation_value.yml @@ -0,0 +1,2 @@ +fixed: + - Honor the value when balancing should not be performed and stop balancing. [#174] diff --git a/proxlb/main.py b/proxlb/main.py index ef5e2a4..5ec5868 100644 --- a/proxlb/main.py +++ b/proxlb/main.py @@ -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