Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2018-01-15 13:56:13 +0300
committerPaweł Chmielowski <pchmielowski@process-one.net>2018-01-15 13:56:20 +0300
commit99f8e58eaf8f9b56d52f9501e553d7f5b8a9c2d7 (patch)
tree97ee04e70d701c40e000bb18739ee973ebde5d2d /plugins
parentd3aab2ea1806813bcc2d5d5bf1fcdeee53701c41 (diff)
Use override syntax that rebar3 accepts
Diffstat (limited to 'plugins')
-rw-r--r--plugins/override_opts.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/override_opts.erl b/plugins/override_opts.erl
index 1cdeca662..df875c556 100644
--- a/plugins/override_opts.erl
+++ b/plugins/override_opts.erl
@@ -2,11 +2,11 @@
-export([preprocess/2]).
override_opts(override, Config, Opts) ->
- lists:foldl(fun({Opt, Value}, Conf) ->
+ lists:foldl(fun({Opt, [Value]}, Conf) ->
rebar_config:set(Conf, Opt, Value)
end, Config, Opts);
override_opts(add, Config, Opts) ->
- lists:foldl(fun({Opt, Value}, Conf) ->
+ lists:foldl(fun({Opt, [Value]}, Conf) ->
V = rebar_config:get_local(Conf, Opt, []),
rebar_config:set(Conf, Opt, [Value | V])
end, Config, Opts).