mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-13 22:50:25 +00:00
Update the rest of the modules to use the updated version_check
This commit is contained in:
@@ -4532,10 +4532,10 @@ sub main {
|
||||
# ##########################################################################
|
||||
# Connect to MySQL if any of the input sources is mysql.
|
||||
# ##########################################################################
|
||||
my $dbh;
|
||||
my ($dbh, $dsn);
|
||||
if ( $need_dbh ) {
|
||||
my $dsn_defaults = $dp->parse_options($o);
|
||||
my $dsn = $dp->parse(shift @ARGV, $dsn_defaults);
|
||||
$dsn = $dp->parse(shift @ARGV, $dsn_defaults);
|
||||
|
||||
if ( $o->get('ask-pass') ) {
|
||||
$dsn->{p} = OptionParser::prompt_noecho("Enter password: ");
|
||||
@@ -4565,7 +4565,9 @@ sub main {
|
||||
# Do the version-check
|
||||
# ########################################################################
|
||||
if ( $o->get('version-check') && (!$o->has('quiet') || !$o->get('quiet')) ) {
|
||||
Pingback::version_check($dbh);
|
||||
Pingback::version_check(
|
||||
($dbh ? { dbh => $dbh, dsn => $dsn } : ()),
|
||||
);
|
||||
}
|
||||
|
||||
# #########################################################################
|
||||
|
Reference in New Issue
Block a user