add missing use if for json library selection
Description
When compiling the perl argonaut code we got this error
Bareword "JSON::RPC::Legacy::Client" not allowed while "strict subs" in use at ./argonaut-server/Argonaut/Server/Modules/OPSI.pm line 566, line 755. ./argonaut-server/Argonaut/Server/Modules/OPSI.pm had compilation errors.
Bareword "JSON::RPC::Legacy::Client" not allowed while "strict subs" in use at ./argonaut-server/Argonaut/Server/Modules/Argonaut.pm line 124, line 755. ./argonaut-server/Argonaut/Server/Modules/Argonaut.pm had compilation errors.
Distribution Name and Version
Debian stretch
Argonaut Version
1.3-dev
PERL version used
perl 5.20
Origin of perl packages
Debian stretch
Steps to Reproduce
- run the ci to compile perl argonaut code
Expected behavior:
no errors
Actual behavior:
Bareword "JSON::RPC::Legacy::Client" not allowed while "strict subs" in use at ./argonaut-server/Argonaut/Server/Modules/OPSI.pm line 566, line 755. ./argonaut-server/Argonaut/Server/Modules/OPSI.pm had compilation errors.
Bareword "JSON::RPC::Legacy::Client" not allowed while "strict subs" in use at ./argonaut-server/Argonaut/Server/Modules/Argonaut.pm line 124, line 755. ./argonaut-server/Argonaut/Server/Modules/Argonaut.pm had compilation errors.
Reproduces how often:
100%
Additional Information
it misses the
use if (USE_LEGACY_JSON_RPC), 'JSON::RPC::Legacy::Client';
use if not (USE_LEGACY_JSON_RPC), 'JSON::RPC::Client';