diff --git a/xCAT-server/xCAT-wsapi/xcatws.cgi b/xCAT-server/xCAT-wsapi/xcatws.cgi index 8b1259b22..bd0768137 100755 --- a/xCAT-server/xCAT-wsapi/xcatws.cgi +++ b/xCAT-server/xCAT-wsapi/xcatws.cgi @@ -2879,7 +2879,7 @@ sub tablerowhdl { # Check if there is any real data in response # One key ('xcatdsource' => '') is always returned. # If no other keys in response - no matches on key or attribute were returned from xcatd - if (keys @$responses[0] <= 1) { + if (keys (%{@$responses[0]}) <= 1) { @$responses[0]->{error} = "No table rows matched specified keys or attributes"; } return $responses;