mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 14:15:29 +02:00
fix docker node not in a swarm
This commit is contained in:
parent
880e7864ea
commit
1b0ec95ec0
@ -223,6 +223,8 @@ sub internal_api_list_nodes {
|
||||
$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
|
||||
}
|
||||
|
||||
return $nodes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user