fix(rubrik): retry token authentication if request return empty result.

Refs:CTOR-729
This commit is contained in:
Evan Adam 2024-12-11 16:14:03 +01:00
parent eb7ae7fb57
commit a4ddcffb6e
1 changed files with 1 additions and 2 deletions

View File

@ -313,8 +313,7 @@ sub request_api_paginate {
);
if (!defined($content) || $content eq '') {
$self->{output}->add_option_msg(short_msg => "API returns empty content [code: '" . $self->{http}->get_code() . "'] [message: '" . $self->{http}->get_message() . "']");
$self->{output}->option_exit();
return ; # If the content is empty, it means that the request failed. caller can try to get a new token and retry.
}
my $decoded;