[pve-devel] [PATCH pve-container] underscore is a valid lxc config	key character
    Wolfgang Bumiller 
    w.bumiller at proxmox.com
       
    Mon Aug 31 15:03:25 CEST 2015
    
    
  
---
 src/PVE/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index 718fcbf..56d4fcb 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -378,7 +378,7 @@ sub parse_pct_config {
 	    next;
 	}
 
-	if ($line =~ m/^(lxc\.[a-z0-9\.]+)(:|\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\./) {
-- 
2.1.4
    
    
More information about the pve-devel
mailing list