From 143ba1e0bf91fd619e9c3cb4da2848b98976edc6 Mon Sep 17 00:00:00 2001 From: Trygve Vea Date: Fri, 6 Dec 2024 00:15:22 +0100 Subject: [PATCH] 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 --- manifests/compute/libvirt.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/compute/libvirt.pp b/manifests/compute/libvirt.pp index 3c7a3607c..54e45719b 100644 --- a/manifests/compute/libvirt.pp +++ b/manifests/compute/libvirt.pp @@ -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 = [],