From 2a163b6e72e4e143a9f00671e850b2ecc5615597 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Tue, 29 Nov 2016 19:56:09 +0100 Subject: [PATCH] + fix unitialized value when using remote mode When using --remote, working but a perl error pop if not using sudo --- apps/backup/netbackup/local/mode/jobstatus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backup/netbackup/local/mode/jobstatus.pm b/apps/backup/netbackup/local/mode/jobstatus.pm index 0a1bee52f..f0e0ee790 100644 --- a/apps/backup/netbackup/local/mode/jobstatus.pm +++ b/apps/backup/netbackup/local/mode/jobstatus.pm @@ -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}->{command} : '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},