fix my shitty commit

This commit is contained in:
qgarnier 2017-07-25 14:24:02 +02:00
parent 1b0ec95ec0
commit 85f061c8fe
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ sub internal_api_list_nodes {
$self->{output}->output_add(severity => 'UNKNOWN',
short_msg => "Node '$options{node_name}': cannot decode json list nodes response: $@");
} else {
$nodes = [] if (ref($item) eq 'HASH'); # nodes is not in a swarm
$nodes = [] if (ref($nodes) eq 'HASH'); # nodes is not in a swarm
}
return $nodes;