Bug 37856: Consider absence of 'Report_Items'

The SUSHI provider in question for this patchset also does not return any
Report_Items entry. This patch accounts for that.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 72b38a1dbf)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Pedro Amorim 2024-09-19 14:00:41 +00:00 committed by Lucas Gass
parent c3681fd9ff
commit 730ca49e06
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ sub _sushi_errors {
return 1;
}
if ( scalar @{ $decoded_response->{Report_Items} } == 0 ) {
if ( $decoded_response->{Report_Items} && scalar @{ $decoded_response->{Report_Items} } == 0 ) {
$self->{job_callbacks}->{add_message_callback}->(
{
type => 'error',