Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Typo

  • Loading branch information...
commit c9c34759068557ec3d54b1bb8fd2063d236936c5 1 parent 8b779ca
@pat2man authored
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} "
Please sign in to comment.
Something went wrong with that request. Please try again.