Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
🚑 fix(server-module-opsi) Remove useless use of JSON::XS
Browse files Browse the repository at this point in the history
issue #5708
  • Loading branch information
MCMic committed Apr 19, 2018
1 parent cf12e7a commit c42d106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argonaut-server/Argonaut/Server/Modules/OPSI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ sub launch {
$res = $res->result;
if ((ref $res eq ref {}) && defined $res->{$self->{'fqdn'}}) {
my $result = $res->{$self->{'fqdn'}};
if (JSON::XS::is_bool($result)) {
if (JSON::is_bool($result)) {
$res = $result;
} elsif (defined $result->{'error'}) {
$main::log->error("[OPSI] Error : ".$result->{'error'});
Expand Down

0 comments on commit c42d106

Please sign in to comment.