lib/chef/knife/topo_bootstrap.rb in knife-topo-0.0.4 vs lib/chef/knife/topo_bootstrap.rb in knife-topo-0.0.5

- old
+ new

@@ -87,15 +87,17 @@ end # Setup the bootstrap args and run the bootstrap command def run_bootstrap(node_data) node_name = node_data['name'] + args = @bootstrap_args args += ['-N', node_name] if(node_name) args += ['-E', node_data['chef_environment']] if(node_data['chef_environment']) args[1] = node_data['ssh_host'] args += [ '--ssh-port', node_data['ssh_port']] if node_data['ssh_port'] args += [ '--run-list' , node_data['run_list'].join(',')] if node_data['run_list'] + args += [ '--json-attributes' , node_data['normal'].to_json] if node_data['normal'] ui.info "Bootstrapping node #{node_name}" begin run_cmd(Chef::Knife::Bootstrap, args) rescue Exception => e