Update vplexapi.pm (#2279)
10 seconds timout is too low. I'm in a small environement and it doesn't work for half modes. 30 seconds works better
This commit is contained in:
parent
dde5af0bff
commit
11e61b3dad
|
@ -69,7 +69,7 @@ sub check_options {
|
||||||
$self->{hostname} = (defined($self->{option_results}->{hostname})) ? shift(@{$self->{option_results}->{hostname}}) : undef;
|
$self->{hostname} = (defined($self->{option_results}->{hostname})) ? shift(@{$self->{option_results}->{hostname}}) : undef;
|
||||||
$self->{vplex_username} = (defined($self->{option_results}->{vplex_username})) ? shift(@{$self->{option_results}->{vplex_username}}) : '';
|
$self->{vplex_username} = (defined($self->{option_results}->{vplex_username})) ? shift(@{$self->{option_results}->{vplex_username}}) : '';
|
||||||
$self->{vplex_password} = (defined($self->{option_results}->{vplex_password})) ? shift(@{$self->{option_results}->{vplex_password}}) : '';
|
$self->{vplex_password} = (defined($self->{option_results}->{vplex_password})) ? shift(@{$self->{option_results}->{vplex_password}}) : '';
|
||||||
$self->{timeout} = (defined($self->{option_results}->{timeout})) ? shift(@{$self->{option_results}->{timeout}}) : 10;
|
$self->{timeout} = (defined($self->{option_results}->{timeout})) ? shift(@{$self->{option_results}->{timeout}}) : 30;
|
||||||
|
|
||||||
if (!defined($self->{hostname})) {
|
if (!defined($self->{hostname})) {
|
||||||
$self->{output}->add_option_msg(short_msg => "Need to specify hostname option.");
|
$self->{output}->add_option_msg(short_msg => "Need to specify hostname option.");
|
||||||
|
|
Loading…
Reference in New Issue