]> git.proxmox.com Git - pve-container.git/commitdiff
allow to set empty lxc.xxx values
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 11 Aug 2015 07:19:43 +0000 (09:19 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 11 Aug 2015 07:19:43 +0000 (09:19 +0200)
For examply, one would like to delete the seccomp profile with

lxc.seccomp =

src/PVE/LXC.pm

index 230a29b134482d8c92184858945747a6b5e05bb8..dadaaf73be3b5e04d9b6699b00567f56bc4500f9 100644 (file)
@@ -341,7 +341,7 @@ sub parse_pct_config {
            next;
        }
 
-       if ($line =~ m/^(lxc\.[a-z0-9\.]+)(:|\s*=)\s*(\S.*)\s*$/) {
+       if ($line =~ m/^(lxc\.[a-z0-9\.]+)(:|\s*=)\s*(.*?)\s*$/) {
            my $key = $1;
            my $value = $3;
            if ($valid_lxc_conf_keys->{$key} || $key =~ m/^lxc\.cgroup\./) {