Skip to content

Commit

Permalink
Fixes #10103: We should not use configure_box in rtf at the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
peckpeck committed Jan 31, 2017
1 parent f684ece commit fa41285
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rtf
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def host_lines(platform, hosts, pf_id):
own_server = server

# generic host
line = "configure_box(config, $" + os + ", '" + pf + "', '" + hostname +"'"
line = "configure(config, $" + os + ", '" + pf + "', " + str(pf_id) + ", '" + hostname +"', " + host_id
line += ", setup:'" + host['rudder-setup'] + "', host_list:'" + hostnames + "'"
# rudder host
if host['rudder-setup'] != 'ncf' and host['rudder-setup'] != 'empty':
Expand Down
3 changes: 2 additions & 1 deletion vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def configure(config, os, pf_name, pf_id, host_name, host_id,
server_config.vm.network :private_network, ip: ip
server_config.vm.hostname = host_name
# this is lazy evaluated and so will contain the last definition of host list
host_list = $platforms[pf_name]['host_list'].join(" ") + " " + host_list
pf_hostlist = $platforms.fetch(pf_name) { { 'host_list' => [] } }
host_list = pf_hostlist['host_list'].join(" ") + " " + host_list
server_config.vm.provision :shell, :inline => command.sub("@host_list@", host_list)
end
end
Expand Down

0 comments on commit fa41285

Please sign in to comment.