test/support/ec2_runner.rb in knife-solo-0.3.0.pre3 vs test/support/ec2_runner.rb in knife-solo-0.3.0.pre4

- old
+ new

@@ -37,11 +37,11 @@ :key_name => key_name) end server.wait_for { ready? } logger.info "#{test.class} server (#{server.dns_name}) reported ready, trying to connect to ssh..." server.wait_for do - `nc #{public_ip_address} 22 -w 1 -q 0 </dev/null` + `nc #{dns_name} 22 -w 1 -q 0 </dev/null` $?.success? end logger.info "Sleeping 10s to avoid Net::SSH locking up by connecting too early..." logger.info " (if you know a better way, please send me a note at https://github.com/matschaffer/knife-solo)" # These may have better ways: @@ -77,10 +77,10 @@ servers.each do |server| puts " * #{server.id}" end sleep 20 servers.each do |server| - logger.info "Destroying #{server.public_ip_address}..." + logger.info "Destroying #{server.dns_name}..." server.destroy end end end