]> git.proxmox.com Git - qemu-server.git/commitdiff
parse_vm_config: allow spaces in values
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 4 Apr 2016 10:15:34 +0000 (12:15 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 1 Mar 2018 09:51:41 +0000 (10:51 +0100)
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

index fb365849925849143247974fa8e8e2c2d4bc25ed..8342f87d68d87b46124ca6d3214bf70cf77ac73b 100644 (file)
@@ -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); };