[pve-devel] [PATCH FOLLOW-UP ha-manager v2 3/4] api: return disable field for rules endpoint

Michael Köppl m.koeppl at proxmox.com
Wed Jul 23 17:35:22 CEST 2025


Signed-off-by: Michael Köppl <m.koeppl at proxmox.com>
---
 src/PVE/API2/HA/Rules.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/API2/HA/Rules.pm b/src/PVE/API2/HA/Rules.pm
index 2e5e382..817aa1d 100644
--- a/src/PVE/API2/HA/Rules.pm
+++ b/src/PVE/API2/HA/Rules.pm
@@ -25,6 +25,7 @@ my $get_api_ha_rule = sub {
 
     my $rule_cfg = dclone($rules->{ids}->{$ruleid});
 
+    $rule_cfg->{disable} = $rules->{ids}->{$ruleid}->{disable};
     $rule_cfg->{rule} = $ruleid;
     $rule_cfg->{digest} = $rules->{digest};
     $rule_cfg->{order} = $rules->{order}->{$ruleid};
-- 
2.47.2





More information about the pve-devel mailing list