mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-24 02:01:42 +08:00
many scripts failed when reading no-version-check from global config file - 1361293
This commit is contained in:
@@ -1132,6 +1132,16 @@ sub _read_config_file {
|
||||
$parse = 0;
|
||||
next LINE;
|
||||
}
|
||||
|
||||
# Silently ignore option [no]-version-check if it is unsupported and it comes from a config file
|
||||
# TODO: Ideally , this should be generalized for all unsupported options that come from global files
|
||||
if ( $parse
|
||||
&& !$self->has('version-check')
|
||||
&& $line =~ /version-check/
|
||||
) {
|
||||
next LINE;
|
||||
}
|
||||
|
||||
if ( $parse
|
||||
&& (my($opt, $arg) = $line =~ m/^\s*([^=\s]+?)(?:\s*=\s*(.*?)\s*)?$/)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user