]> git.proxmox.com Git - pve-container.git/commitdiff
allow to parse configuration value with spaces
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 18 Sep 2015 09:12:58 +0000 (11:12 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 18 Sep 2015 09:12:58 +0000 (11:12 +0200)
Required for namenerser and searchdomain lists.

src/PVE/LXC.pm

index 3e1e5aa8c543abcda3331b418bc748e57c9cf7c3..3c77c5bc0b9053a067e751ef92babd97591bc275 100644 (file)
@@ -401,7 +401,7 @@ sub parse_pct_config {
            $descr .= PVE::Tools::decode_text($2);
        } elsif ($line =~ m/snapstate:\s*(prepare|delete)\s*$/) {
            $conf->{snapstate} = $1;
-       } elsif ($line =~ m/^([a-z][a-z_]*\d*):\s*(\S+)\s*$/) {
+       } elsif ($line =~ m/^([a-z][a-z_]*\d*):\s*(\S.*)\s*$/) {
            my $key = $1;
            my $value = $2;
            eval { $value = check_type($key, $value); };