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.
This commit is contained in:
Wolfgang Bumiller 2016-04-04 12:15:34 +02:00
parent b20c8f7ec6
commit 15cf76988d

View 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); };