mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-20 09:40:38 +00:00
minor tweak of VersionCheck for ease of testing
This commit is contained in:
@@ -644,10 +644,10 @@ sub get_from_mysql {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
# hardcode the variables we report
|
# Only allow version variables to be reported
|
||||||
# so in case of MITM attack, we don't report sensitive data
|
# So in case of MITM attack, we don't report sensitive data
|
||||||
if ($item->{item} eq 'MySQL' && $item->{type} eq 'mysql_variable') {
|
if ($item->{item} eq 'MySQL' && $item->{type} eq 'mysql_variable') {
|
||||||
$item->{vars} = ['version_comment', 'version'];
|
@{$item->{vars}} = grep { $_ eq 'version' || $_ eq 'version_comment' } @{$item->{vars}};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user