mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +02:00
Enhancement of vmware connector options
This commit is contained in:
parent
95ac4ffd03
commit
5e865c9af1
@ -121,7 +121,9 @@ sub check_options {
|
||||
$self->{vsphere_username} = (defined($self->{option_results}->{vsphere_username})) ? shift(@{$self->{option_results}->{vsphere_username}}) : undef;
|
||||
$self->{vsphere_password} = (defined($self->{option_results}->{vsphere_password})) ? shift(@{$self->{option_results}->{vsphere_password}}) : undef;
|
||||
|
||||
if (!defined($self->{connector_hostname})) {
|
||||
$self->{connector_port} = 5700 if ($self->{connector_port} eq '');
|
||||
$self->{container} = 'default' if ($self->{container} eq '');
|
||||
if (!defined($self->{connector_hostname}) || $self->{connector_hostname} eq '') {
|
||||
$self->{output}->add_option_msg(short_msg => "Please set option --connector-hostname.");
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user