(plugin) apps::backup::commvault::commserve::restapi - mode jobs change limit (#4351)
This commit is contained in:
parent
552b08c0a2
commit
55e2e529a2
|
@ -236,6 +236,7 @@ sub request_internal {
|
||||||
my $content = $self->{http}->request(
|
my $content = $self->{http}->request(
|
||||||
url_path => $self->{url_path} . $options{endpoint},
|
url_path => $self->{url_path} . $options{endpoint},
|
||||||
get_param => $options{get_param},
|
get_param => $options{get_param},
|
||||||
|
header => $options{header},
|
||||||
warning_status => '',
|
warning_status => '',
|
||||||
unknown_status => '',
|
unknown_status => '',
|
||||||
critical_status => ''
|
critical_status => ''
|
||||||
|
@ -337,7 +338,8 @@ sub request_jobs {
|
||||||
|
|
||||||
my $response = $self->request_internal(
|
my $response = $self->request_internal(
|
||||||
endpoint => $options{endpoint},
|
endpoint => $options{endpoint},
|
||||||
get_param => ['completedJobLookupTime=' . $lookup_time]
|
get_param => ['completedJobLookupTime=' . $lookup_time],
|
||||||
|
header => ['limit: 10000']
|
||||||
);
|
);
|
||||||
|
|
||||||
$self->create_cache_file(type => 'jobs', response => $response)
|
$self->create_cache_file(type => 'jobs', response => $response)
|
||||||
|
|
|
@ -199,9 +199,9 @@ sub manage_selection {
|
||||||
$self->{output}->output_add(long_msg => "skipping job '" . $policy_name . "/" . $job->{jobId} . "': no matching filter type.", debug => 1);
|
$self->{output}->output_add(long_msg => "skipping job '" . $policy_name . "/" . $job->{jobId} . "': no matching filter type.", debug => 1);
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if (defined($job->{clientGroups}) && defined($self->{option_results}->{filter_client_name}) && $self->{option_results}->{filter_client_name} ne '') {
|
if (defined($self->{option_results}->{filter_client_group}) && $self->{option_results}->{filter_client_group} ne '' && defined($job->{clientGroups}) && ref($job->{clientGroups}) eq 'ARRAY') {
|
||||||
my $matched = 0;
|
my $matched = 0;
|
||||||
foreach (@$job->{clientGroups}) {
|
foreach (@{$job->{clientGroups}}) {
|
||||||
if ($_->{clientGroupName} =~ /$self->{option_results}->{filter_client_group}/) {
|
if ($_->{clientGroupName} =~ /$self->{option_results}->{filter_client_group}/) {
|
||||||
$matched = 1;
|
$matched = 1;
|
||||||
last;
|
last;
|
||||||
|
|
Loading…
Reference in New Issue