From 8717d89d92bca8585986c452512e8ca85f56f1db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominic=20J=C3=A4ger?= Date: Wed, 21 Jul 2021 12:06:48 +0200 Subject: [PATCH] Fix #3371: parse ovf: Allow dots in VM name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dots are allow in PVE VM names, so they should not be dropped during import. Signed-off-by: Dominic Jäger --- PVE/QemuServer/OVF.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/QemuServer/OVF.pm b/PVE/QemuServer/OVF.pm index c76c1998..0376cbf5 100644 --- a/PVE/QemuServer/OVF.pm +++ b/PVE/QemuServer/OVF.pm @@ -111,7 +111,8 @@ sub parse_ovf { my $ovf_name = $xpc->findvalue($xpath_find_name); if ($ovf_name) { - ($qm->{name} = $ovf_name) =~ s/[^a-zA-Z0-9\-]//g; # PVE::QemuServer::confdesc requires a valid DNS name + # PVE::QemuServer::confdesc requires a valid DNS name + ($qm->{name} = $ovf_name) =~ s/[^a-zA-Z0-9\-\.]//g; } else { warn "warning: unable to parse the VM name in this OVF manifest, generating a default value\n"; }