Skip to content
Snippets Groups Projects
Commit 0efc841d authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

namelist2config: changed duplicate key feedback to show old value

parent e346ddc6
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,11 @@ while(<>) {
$open_value = 1;
$direct and print(" $key = ");
if(exists $namelist_group->{$key}) {
warn("Hey: duplicate key '$key'");
my $value = join(', ', @{$namelist_group->{$key}});
my $line = ' '.$_;
$line =~ s/\s+/ /g;
warn("Hey: duplicate key, current value '$value'\n");
warn("$.:$line\n");
$key = '#DUPLICATE# '.$key;
}
$namelist_group->{$key} = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment