From 973f77eb1965d52ffb4c16ec1a85be36ed8da897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Herranz=20Ram=C3=ADrez?= Date: Thu, 30 Nov 2023 13:38:10 +0100 Subject: [PATCH] Make the HOST_VERSION variable not mandatory --- tests/containers/host_configuration.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/containers/host_configuration.pm b/tests/containers/host_configuration.pm index d75c4f99bb88..73af290cdbe8 100644 --- a/tests/containers/host_configuration.pm +++ b/tests/containers/host_configuration.pm @@ -27,7 +27,7 @@ sub run { # Update the system to get the latest released state of the hosts. # Check routing table is well configured if ($host_distri =~ /sles|opensuse/) { - my $host_version = get_required_var('HOST_VERSION'); + my $host_version = get_var('HOST_VERSION') ? get_var('HOST_VERSION') : 'openSUSE_Tumbleweed'; $host_version = ($host_version =~ /SP/) ? ("SLE_" . $host_version =~ s/-SP/_SP/r) : $host_version; zypper_call("--quiet up", timeout => $update_timeout); # Cannot use `ensure_ca_certificates_suse_installed` as it will depend