From 15cf76988d03fc914c197f4bd95b4dc9528f9df7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 4 Apr 2016 12:15:34 +0200 Subject: [PATCH] parse_vm_config: allow spaces in values This time we can't avoid it: nameservers are listed with separating spaces in LXC and we want to stay consistent and use the same format in qemu. --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index fb36584..8342f87 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2280,7 +2280,7 @@ sub parse_vm_config { } else { warn "vm $vmid - propertry 'delete' is only allowed in [PENDING]\n"; } - } elsif ($line =~ m/^([a-z][a-z_]*\d*):\s*(\S+)\s*$/) { + } elsif ($line =~ m/^([a-z][a-z_]*\d*):\s*(.+?)\s*$/) { my $key = $1; my $value = $2; eval { $value = check_type($key, $value); }; -- 2.39.2