Skip to content

Commit 51a8944

Browse files
committed
Decode server summary before returning
1 parent e14ebfc commit 51a8944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Brass/ConfigDB.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ sub run
149149

150150
my $decoded = decode_json $response->decoded_content;
151151
error $decoded->{message} if $decoded->{is_error};
152-
if ($action eq 'metadata') # double-encoded
152+
if ($action eq 'metadata' || $action eq 'summary') # double-encoded
153153
{
154154
return undef if !$decoded->{result}; # No metadata
155155
return decode_json $decoded->{result};

0 commit comments

Comments
 (0)