-forwarders << search(:node, "recipes:logstash\\:\\:forwarder").collect do |forwarder|
- forwarder.ipaddresses(:role => :external)
-end.flatten
+search(:node, "recipes:logstash\\:\\:forwarder").each do |forwarder|
+ forwarders.append(forwarder.ipaddresses(:role => :external))
+end