Merge pull request #997 from tnull/fix_auth_method_order

Minimal auth_method ordering fix during configuration merge.
This commit is contained in:
Mickaël Rémond 2016-03-11 11:37:50 +01:00
commit 1336c6c9fa
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ maps_to_lists(IMap) ->
end, [], IMap).
merge_configs(Terms, ResMap) ->
lists:foldl(fun({Name, Val}, Map) when is_list(Val) ->
lists:foldl(fun({Name, Val}, Map) when is_list(Val), Name =/= auth_method ->
Old = maps:get(Name, Map, #{}),
New = lists:foldl(fun(SVal, OMap) ->
NVal = if Name == host_config orelse Name == append_host_config ->