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.k...@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to