We need to set hosts in options to be able to retrieve 'MYHOSTS'

This commit is contained in:
Mickael Remond 2016-04-06 12:59:27 +02:00
parent 232915184c
commit 67b9b82261
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ hosts_to_start(State) ->
-spec(start/2 :: (Hosts :: [binary()], Opts :: [acl:acl() | local_config()]) -> ok).
start(Hosts, Opts) ->
mnesia_init(),
set_opts(#state{hosts = Hosts, opts = Opts}).
set_opts(set_hosts_in_options(Hosts, #state{opts = Opts})).
mnesia_init() ->
case catch mnesia:table_info(local_config, storage_type) of