fix(pvx)compat-with-last-api(2) (#2014)
This commit is contained in:
parent
3610b4f645
commit
00a5866296
|
@ -88,6 +88,11 @@ sub check_options {
|
|||
my ($self, %options) = @_;
|
||||
$self->SUPER::check_options(%options);
|
||||
|
||||
if (!defined($self->{option_results}->{from}) || $self->{option_results}->{from} eq '') {
|
||||
$self->{output}->add_option_msg(short_msg => "Need to specify --from option as a PVQL object.");
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
|
||||
if (!defined($self->{option_results}->{instance}) || $self->{option_results}->{instance} eq '') {
|
||||
$self->{output}->add_option_msg(short_msg => "Need to specify --instance option as a PVQL object.");
|
||||
$self->{output}->option_exit();
|
||||
|
|
|
@ -97,6 +97,11 @@ sub check_options {
|
|||
my ($self, %options) = @_;
|
||||
$self->SUPER::check_options(%options);
|
||||
|
||||
if (!defined($self->{option_results}->{from}) || $self->{option_results}->{from} eq '') {
|
||||
$self->{output}->add_option_msg(short_msg => "Need to specify --from option as a PVQL object.");
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
|
||||
if (!defined($self->{option_results}->{instance}) || $self->{option_results}->{instance} eq '') {
|
||||
$self->{output}->add_option_msg(short_msg => "Need to specify --instance option as a PVQL object.");
|
||||
$self->{output}->option_exit();
|
||||
|
|
|
@ -132,6 +132,11 @@ sub check_options {
|
|||
my ($self, %options) = @_;
|
||||
$self->SUPER::check_options(%options);
|
||||
|
||||
if (!defined($self->{option_results}->{from}) || $self->{option_results}->{from} eq '') {
|
||||
$self->{output}->add_option_msg(short_msg => "Need to specify --from option as a PVQL object.");
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
|
||||
if (!defined($self->{option_results}->{instance}) || $self->{option_results}->{instance} eq '') {
|
||||
$self->{output}->add_option_msg(short_msg => "Need to specify --instance option as a PVQL object.");
|
||||
$self->{output}->option_exit();
|
||||
|
|
|
@ -75,7 +75,7 @@ sub check_options {
|
|||
$self->{output}->option_exit();
|
||||
}
|
||||
|
||||
if (!defined($self->{option_results}->{from}) || $self->{option_results}->{instance} eq '') {
|
||||
if (!defined($self->{option_results}->{instance}) || $self->{option_results}->{instance} eq '') {
|
||||
$self->{output}->add_option_msg(short_msg => "Need to specify --instance option as a PVQL object.");
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue