remove useless skip_global

This commit is contained in:
garnier-quentin 2019-11-14 17:09:44 +01:00
parent 4c308adc1a
commit 6ffa73031f
1 changed files with 1 additions and 7 deletions

View File

@ -44,7 +44,7 @@ sub set_counters {
my ($self, %options) = @_;
$self->{maps_counters_type} = [
{ name => 'global', type => 0, cb_init => 'skip_global' },
{ name => 'global', type => 0 },
{ name => 'diskpath', type => 1, cb_prefix_output => 'prefix_diskpath_output', message_multiple => 'All partitions are ok', skipped_code => { -10 => 1 } },
];
@ -99,12 +99,6 @@ sub set_counters {
];
}
sub skip_global {
my ($self, %options) = @_;
scalar(keys %{$self->{diskpath}}) > 1 ? return(0) : return(1);
}
sub prefix_diskpath_output {
my ($self, %options) = @_;