lib/chef/knife/ssh.rb in chef-0.9.10.rc.2 vs lib/chef/knife/ssh.rb in chef-0.9.10.rc.3

- old
+ new

@@ -93,12 +93,14 @@ @name_args[0].split(" ") when false r = Array.new q = Chef::Search::Query.new @action_nodes = q.search(:node, @name_args[0])[0] - r = @action_nodes.map do |item| - format_for_display(item)[config[:attribute]] + @action_nodes.each do |item| + i = format_for_display(item)[config[:attribute]] + r.push(i) unless i.nil? end + r end (Chef::Log.fatal("No nodes returned from search!"); exit 10) if list.length == 0 session_from_list(list) end