+ fix unitialized value when using remote mode

When using --remote, working but a perl error pop if not using sudo
This commit is contained in:
Sims24 2016-11-29 19:56:09 +01:00 committed by GitHub
parent 87256a002e
commit 2a163b6e72
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}->{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},