mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +00:00
Remove depricated Perl usage of keys on scalar
This commit is contained in:
parent
55d66c2fa1
commit
13d51ad7dc
@ -2879,7 +2879,7 @@ sub tablerowhdl {
|
||||
# Check if there is any real data in response
|
||||
# One key ('xcatdsource' => '<node>') 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user