domain_balancing: Allow for specifying 'type' only

Allow for specifying the 'type' of 'domain_balancing' without specifying
the 'component_number' (as per the example in the documentation).  The
balancing 'type' is then applied to the dynamic number of component
instances.
This commit is contained in:
Holger Weiss 2022-04-04 00:14:32 +02:00
parent 152956c194
commit 121fc716b0
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ opt_type(domain_balancing) ->
#{component_number => econf:int(2, 1000),
type => econf:enum([random, source, destination,
bare_source, bare_destination])},
[{required, [component_number]}, {return, map}, unique]),
[{return, map}, unique]),
[{return, map}]);
opt_type(ext_api_path_oauth) ->
econf:binary();