Skip to content
Snippets Groups Projects
Unverified Commit d3f3dc4e authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Yaroslav Lobankov
Browse files

luatest: copy config in cluster:build_server()

It takes box.cfg config as an argument. And changes the argument
by adding a new key 'command'. If the caller wants to pass the
same box.cfg or slightly modified to several build_server() calls,
it won't work - all options will be the same on all instances.

For example:

    local cfg = {...}
    cfg.replication = {url1}
    cluster:build_server(cfg)
    cfg.replication = {url2}
    cluster:build_server(cfg)

It will not work. Both servers will get the same 'command' and the
same 'replication'.

(cherry picked from commit 33ea6824)
parent c28a3b2f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment