From bc00a019857d4fc445540b686df9940b65b31992 Mon Sep 17 00:00:00 2001 From: omercier <32134301+omercier@users.noreply.github.com> Date: Thu, 12 Oct 2017 14:41:48 +0200 Subject: [PATCH] +Fix typo variables and functions containing finded --- apps/centreon/local/mode/retentionbroker.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/centreon/local/mode/retentionbroker.pm b/apps/centreon/local/mode/retentionbroker.pm index 25f499963..cbb69293d 100644 --- a/apps/centreon/local/mode/retentionbroker.pm +++ b/apps/centreon/local/mode/retentionbroker.pm @@ -98,20 +98,20 @@ sub run { short_msg => "'$config': cannot parse xml"); next; } - my %failover_finded = (); - my %file_finded = (); + my %failover_found = (); + my %file_found = (); my $temporary; foreach my $node ($xml->findnodes('/centreonBroker/output')) { my %load = (); foreach my $element ($node->getChildrenByTagName('*')) { if ($element->nodeName eq 'failover') { - $failover_finded{$element->textContent} = 1; + $failover_found{$element->textContent} = 1; } elsif ($element->nodeName =~ /^(name|type|path)$/) { $load{$element->nodeName} = $element->textContent; } } if (defined($load{type}) && $load{type} eq 'file') { - $file_finded{$load{name}} = {%load}; + $file_found{$load{name}} = {%load}; } } @@ -123,10 +123,10 @@ sub run { # Check failovers my $current_total = 0; - foreach my $failover (sort keys %failover_finded) { - next if (!defined($file_finded{$failover})); + foreach my $failover (sort keys %failover_found) { + next if (!defined($file_found{$failover})); - my ($status, $total, $size) = $self->check_directory(config => $config, path => $file_finded{$failover}->{path}); + my ($status, $total, $size) = $self->check_directory(config => $config, path => $file_found{$failover}->{path}); next if (!$status); $current_total += $total;