From 98add47637b2540a3ea79edd0e5a302a37bee10a Mon Sep 17 00:00:00 2001 From: WangXiaoPeng Date: Wed, 13 Jan 2016 21:02:17 -0500 Subject: [PATCH] Issue 588: fix the issue that def command cannot display the value correctly when it has = inside --- xCAT-server/xCAT-wsapi/xcatws.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/xCAT-wsapi/xcatws.cgi b/xCAT-server/xCAT-wsapi/xcatws.cgi index 226d1ae2a..dee357b30 100755 --- a/xCAT-server/xCAT-wsapi/xcatws.cgi +++ b/xCAT-server/xCAT-wsapi/xcatws.cgi @@ -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; }