Commit 030c57bb authored by Ruslan Zakirov's avatar Ruslan Zakirov
Browse files

sort keys when we process a mapping

So callbacks get reliable set in 'result' argument.
parent 5e7880fd
......@@ -154,6 +154,8 @@ The currently processed key and value from the mapping.
=item result
Hash reference with results of completed mappings for this ldap entry.
This should be used to inject that are not in the mapping, not to inspect.
Mapping is processed in literal order of the keys.
......@@ -729,7 +731,7 @@ sub _parse_ldap_mapping {
my $mapping = $args{mapping};
my %res;
foreach my $rtfield ( keys %$mapping ) {
foreach my $rtfield ( sort keys %$mapping ) {
next if $args{'skip'} && $rtfield =~ $args{'skip'};
next if $args{'only'} && $rtfield !~ $args{'only'};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment