Validate that $vncserver_listen is not of zero length

It is currently possible to set this to an empty string, which will
cause nova compute to not start due to being an invalid host address.

Change-Id: Idac2ec7b85353b9f69b92b12978f6fac8651f077
This commit is contained in:
Trygve Vea 2024-12-06 00:15:22 +01:00
parent fb446f089f
commit 143ba1e0bf

View File

@ -238,7 +238,7 @@
class nova::compute::libvirt (
$ensure_package = 'present',
Nova::VirtType $virt_type = 'kvm',
$vncserver_listen = '127.0.0.1',
String[1] $vncserver_listen = '127.0.0.1',
Boolean $migration_support = false,
Optional[Nova::CpuMode] $cpu_mode = undef,
Array[String[1]] $cpu_models = [],