Bug 37810: Consider ServiceActive on status response
Some SUSHI providers return ServiceActive instead of the documented Service_Active: https://countermetrics.stoplight.io/docs/counter-sushi-api/f0dd30f814944-server-status This ensures the test connection does not fail regardless of what is used Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
This commit is contained in:
parent
dfd9bc68cd
commit
f8fb37b3fa
|
|
@ -300,10 +300,10 @@ sub test_connection {
|
|||
my $status;
|
||||
if ( ref($result) eq 'ARRAY' ) {
|
||||
for my $r (@$result) {
|
||||
$status = $r->{Service_Active};
|
||||
$status = $r->{Service_Active} // $r->{ServiceActive};
|
||||
}
|
||||
} else {
|
||||
$status = $result->{Service_Active};
|
||||
$status = $result->{Service_Active} // $result->{ServiceActive};
|
||||
}
|
||||
|
||||
if ($status) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue