mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 05:29:30 +00:00
Don't pass entry_link unless given to avoid stack trace error.
This commit is contained in:
@@ -4944,10 +4944,11 @@ sub get_api_client {
|
|||||||
# Optional args
|
# Optional args
|
||||||
my $tries = $args{tries};
|
my $tries = $args{tries};
|
||||||
my $_oktorun = $args{oktorun} || sub { return $oktorun };
|
my $_oktorun = $args{oktorun} || sub { return $oktorun };
|
||||||
|
my $entry_link = $args{entry_link} || $ENV{PWS_ENTRY_LINK};
|
||||||
|
|
||||||
my $client = Percona::WebAPI::Client->new(
|
my $client = Percona::WebAPI::Client->new(
|
||||||
api_key => $api_key,
|
api_key => $api_key,
|
||||||
entry_link => $args{entry_link} || $ENV{PWS_ENTRY_LINK},
|
($entry_link ? (entry_link => $entry_link) : ()),
|
||||||
);
|
);
|
||||||
|
|
||||||
my $entry_links;
|
my $entry_links;
|
||||||
|
Reference in New Issue
Block a user