[pve-devel] [PATCH cluster v2 2/3] datacenter config: make pve-ha-shutdown-policy optional
Daniel Kral
d.kral at proxmox.com
Fri Jun 20 16:31:11 CEST 2025
If there are other properties in the HA config hash, these cannot be set
without also giving a value for shutdown_policy, which is unnecessary as
it already has a default value. Therefore, make it optional.
Signed-off-by: Daniel Kral <d.kral at proxmox.com>
---
changes since v1:
- NEW!
src/PVE/DataCenterConfig.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/DataCenterConfig.pm b/src/PVE/DataCenterConfig.pm
index 53095a1..3c983b8 100644
--- a/src/PVE/DataCenterConfig.pm
+++ b/src/PVE/DataCenterConfig.pm
@@ -124,6 +124,7 @@ register_standard_option(
. "be moved back to the previously powered-off node, at least if no other migration, "
. "reloaction or recovery took place.",
default => 'conditional',
+ optional => 1,
},
);
--
2.39.5
More information about the pve-devel
mailing list