Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 05dc705e authored by stephane martin's avatar stephane martin
Browse files

[Kascade] Bugfix: If the master is not provided, Kascade uses the first node...

[Kascade] Bugfix: If the master is not provided, Kascade uses the first node to detect the local IP.

If the master is not provided when detect_who_i_am function is called, this means that
the node is the master. The detect_who_i_am function is used to detect, if the master is
included in node list.

Change-Id: Iade6f89cff720c95a7e4a07a9905645322140086
parent 45b08c93
No related branches found
No related tags found
No related merge requests found
......@@ -231,7 +231,7 @@ def detect_who_i_am
who = my_list.index(host) if host
end
unless who
who = my_list.index(local_ip($config[:master]))
who = my_list.index(local_ip($config[:master] || $config[:nodeList][0]))
end
who
end
......
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