mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Delay loading required non-core modules and let pt-agent check for them manually.
This commit is contained in:
@@ -26,10 +26,12 @@ use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
use constant PTDEBUG => $ENV{PTDEBUG} || 0;
|
||||
|
||||
use LWP;
|
||||
use JSON;
|
||||
eval {
|
||||
use LWP;
|
||||
use JSON;
|
||||
};
|
||||
|
||||
use Scalar::Util qw(blessed);
|
||||
use English qw(-no_match_vars);
|
||||
|
||||
use Lmo;
|
||||
use Percona::Toolkit;
|
||||
|
@@ -20,7 +20,9 @@
|
||||
{
|
||||
package Percona::WebAPI::Representation;
|
||||
|
||||
use JSON;
|
||||
eval {
|
||||
use JSON;
|
||||
};
|
||||
|
||||
require Exporter;
|
||||
our @ISA = qw(Exporter);
|
||||
|
Reference in New Issue
Block a user