fix zookeeper

This commit is contained in:
qgarnier 2017-09-12 14:32:05 +02:00
parent 6383d64aa8
commit e67d287de4
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ sub set_counters {
my ($self, %options) = @_;
$self->{maps_counters_type} = [
{ name => 'zk', type => 0, cb_prefix_output => 'prefix_zk_output', skipped_code => { -10 => 1 } },
{ name => 'zk', type => 1, cb_prefix_output => 'prefix_zk_output', skipped_code => { -10 => 1 } },
];
$self->{maps_counters}->{zk} = [
@ -121,7 +121,7 @@ sub manage_selection {
next if ($mbean !~ /name2=(.*?)(?:,|$)/);
my $type = $1;
$self->{zk} = {
$self->{zk}->{$type} = {
display => $type,
%{$result->{$mbean}},
};