Like this, the Cfg2Cmd module can fill in the default and only needs to check for definedness once.
Signed-off-by: Fiona Ebner <[email protected]> --- src/PVE/QemuServer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm index cb7755b6..af4b2ea7 100644 --- a/src/PVE/QemuServer.pm +++ b/src/PVE/QemuServer.pm @@ -376,6 +376,7 @@ my $confdesc = { type => 'string', # NOTE: When extending, also consider extending `%guest_types` in `Import/ESXi.pm`. enum => [qw(other wxp w2k w2k3 w2k8 wvista win7 win8 win10 win11 l24 l26 solaris)], + default => 'other', description => "Specify guest operating system.", verbose_description => <<EODESC, Specify guest operating system. This is used to enable special -- 2.47.3 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
