Skip to content

Commit

Permalink
fix tests by avoiding json-decoding POST/PATCH/DELETE results
Browse files Browse the repository at this point in the history
  • Loading branch information
omercier committed Feb 17, 2025
1 parent d768cde commit 81db913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/vmware/vsphere8/custom/api.pm
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ sub try_request_api {
}


my $decoded = ($content eq '') ? {} : centreon::plugins::misc::json_decode($content);
my $decoded = ($method eq 'GET') ? centreon::plugins::misc::json_decode($content) : {};

return $decoded;
}
Expand Down

0 comments on commit 81db913

Please sign in to comment.