enhance xtermio

This commit is contained in:
qgarnier 2017-12-06 14:05:59 +01:00
parent 73f4c9f25f
commit 779eb259db
1 changed files with 4 additions and 2 deletions

View File

@ -204,8 +204,10 @@ sub get_details_lookup_clusters {
# "error_code": 400
#}
#
my $clusters = $self->cache_clusters();
foreach my $cluster_name (keys %$clusters) {
if (!defined($self->{cache_clusters})) {
$self->{cache_clusters} = $self->cache_clusters();
}
foreach my $cluster_name (keys %{$self->{cache_clusters}}) {
my $url = $options{url} . $options{append} . 'cluster-name=' . $cluster_name;
my $decoded = $self->get_details_data(url => $url);
return $decoded if (!defined($decoded->{error_code}));