2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Issue 588: fix the issue that def command cannot display the value correctly when it has = inside

This commit is contained in:
WangXiaoPeng 2016-01-13 21:02:17 -05:00
parent 213d66d34c
commit 98add47637

View File

@ -1535,7 +1535,7 @@ sub defout {
}
else { # just an attribute of the current node
if (! $nodename) { error('improperly formatted lsdef output from xcatd', $STATUS_TEAPOT); }
my ($attr, $val) = $l =~ /^\s*(\S+.*?)=(.*)$/;
my ($attr, $val) = $l =~ /^\s*(\S+?)=(.*)$/;
if (!defined($attr)) { error('improperly formatted lsdef output from xcatd', $STATUS_TEAPOT); }
$json->{$nodename}->{$attr} = $val;
}