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:
parent
213d66d34c
commit
98add47637
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user