(plugin) apps::protocols::nrpe - remove basic and credentials options (#3526)
This commit is contained in:
parent
a2e65c1592
commit
b0b7838cd8
|
@ -49,8 +49,6 @@ sub new {
|
|||
'hostname:s' => { name => 'hostname' },
|
||||
'port:s' => { name => 'port' },
|
||||
'proto:s' => { name => 'proto' },
|
||||
'credentials' => { name => 'credentials' },
|
||||
'basic' => { name => 'basic' },
|
||||
'username:s' => { name => 'username' },
|
||||
'password:s' => { name => 'password' },
|
||||
'legacy-password:s' => { name => 'legacy_password' },
|
||||
|
@ -107,7 +105,7 @@ sub build_options_for_httplib {
|
|||
$self->{option_results}->{proto} = $self->{proto};
|
||||
$self->{option_results}->{timeout} = $self->{timeout};
|
||||
|
||||
if (defined($self->{username})) {
|
||||
if (defined($self->{username}) && $self->{username} ne '') {
|
||||
$self->{option_results}->{username} = $self->{username};
|
||||
$self->{option_results}->{password} = $self->{password};
|
||||
$self->{option_results}->{credentials} = 1;
|
||||
|
|
Loading…
Reference in New Issue