Merge pull request #556 from Sims24/fix_netbackup

Fix netbackup/jobstatus little perl unitialized value
This commit is contained in:
qgarnier 2016-11-29 22:20:29 +01:00 committed by GitHub
commit 045596acd2
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ my %job_state = (
sub manage_selection {
my ($self, %options) = @_;
$self->{cache_name} = "netbackup_" . $self->{mode} . '_' . (defined($self->{option_results}->{hostname}) ? $self->{option_results}->{sudo} : 'me') . '_' .
$self->{cache_name} = "netbackup_" . $self->{mode} . '_' . (defined($self->{option_results}->{hostname}) ? $self->{option_results}->{hostname} : 'me') . '_' .
(defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all'));
my ($stdout) = centreon::plugins::misc::execute(output => $self->{output},