mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-29 09:32:47 +00:00
Merge pull request #1002 from Shopify/PT-2015_fix_comparing_unsorted_flags
PT-2015 Fix pt-config-diff not sorting flags
This commit is contained in:
@@ -295,6 +295,10 @@ sub _normalize_value {
|
||||
$val = defined $val ? $val : '';
|
||||
$val = $alt_val_for{$val} if exists $alt_val_for{$val};
|
||||
|
||||
if ( $val =~ m/,/ && !$is_dir && !$base_path) {
|
||||
$val = join(',', sort(split(',', $val)));
|
||||
}
|
||||
|
||||
if ( $val ) {
|
||||
if ( $is_dir ) {
|
||||
$val .= '/' unless $val =~ m/\/$/;
|
||||
|
Reference in New Issue
Block a user