- if details[:nodes_allow]
- hosts_allow[name] |= search(:node, details[:nodes_allow]).collect do |n|
- n.ipaddresses(:role => :external)
- end.flatten
- end
+ hosts_allow[name] |= search(:node, details[:nodes_allow]).collect do |n|
+ n.ipaddresses(:role => :external)
+ end.flatten if details[:nodes_allow]