fix my shitty commit
This commit is contained in:
parent
1b0ec95ec0
commit
85f061c8fe
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue