Skip to content

Commit 92fd1e5

Browse files
author
Brett Hazen
committed
Addresses BTA-207 to fix cuttlefish_configuration test and
rt_harness_util:deploy_nodes/5 to handle cuttlefish
1 parent d6dca14 commit 92fd1e5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/rt_harness_util.erl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,17 @@ deploy_nodes(NodeIds, NodeMap, Version, Config, Services) ->
8989
create_dirs(Version, NodeIds),
9090

9191
%% Set initial config
92+
%% TODO: Cuttlefish should not need to have Nodes be atoms explicitly
9293
ConfigUpdateFun =
93-
fun(Node) ->
94-
rt_harness:update_app_config(Node, Version, Config)
94+
case Config of
95+
{cuttlefish, CuttleConfig} ->
96+
fun(Node) ->
97+
rt_harness:set_conf(list_to_atom(Node), CuttleConfig)
98+
end;
99+
_ ->
100+
fun(Node) ->
101+
rt_harness:update_app_config(Node, Version, Config)
102+
end
95103
end,
96104
rt2:pmap(ConfigUpdateFun, NodeIds),
97105

0 commit comments

Comments
 (0)