Browse files

Typo

  • Loading branch information...
1 parent 8b779ca commit c9c34759068557ec3d54b1bb8fd2063d236936c5 @pat2man committed Apr 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 providers/zenbatchload.rb
View
2 providers/zenbatchload.rb
@@ -49,7 +49,7 @@
#add the individual nodes
devices[dclass]['nodes'].sort_by {|n| n.ipaddress}.each do |device|
#set for hybrid clouds
- if device['cloud'] and device['cloud']['public_ips'] and !device.cloud.public_ips[0].nil? !(node['cloud'] and node['cloud']['provider'] != device['cloud']['provider'])
+ if device['cloud'] and device['cloud']['public_ips'] and !"#{device.cloud.public_ips[0]}".strip.empty? and !(node['cloud'] and node['cloud']['provider'] != device['cloud']['provider'])
batch += "#{device.cloud.public_ips[0]} "
else
batch += "#{device.ipaddress} "

0 comments on commit c9c3475

Please sign in to comment.