bin/cloud-ssh in auser-poolparty-1.2.8 vs bin/cloud-ssh in auser-poolparty-1.2.9
- old
+ new
@@ -19,10 +19,10 @@
@cloud = @loaded_clouds.first
nodes = @cloud.nodes(:status => "running")
if !nodes.empty?
n = command[:inst_num] ? command[:inst_num].to_i : 0
- @cloud.ssh_into( nodes[n].ip ) if @cloud
+ @cloud.ssh_into( nodes[n].ip || nodes[n].public_ip ) if @cloud
else
puts "No running instances can be found"
end
end
\ No newline at end of file