mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
fix bug: failed to load config file which value include comma in object section
This commit is contained in:
parent
4d046d4f4e
commit
d1b823b4b3
@ -682,7 +682,7 @@ sub load_config_file {
|
||||
}
|
||||
} elsif ($type eq "Object") {
|
||||
##OBJECT BLOCK##
|
||||
if ($line =~ /(\w+)\s*=\s*([:\w\.\-\/]+)/) {
|
||||
if ($line =~ /(\w+)\s*=\s*([:,\w\.\-\/]+)/) {
|
||||
$attr = $1;
|
||||
$value = $2;
|
||||
if ($attr eq "Name") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user