Permalink
Browse files

sleep right after creating instance before trying to find it again

  • Loading branch information...
Noah Zoschke
Noah Zoschke committed Feb 18, 2010
1 parent db1f154 commit 8f52c55b9b1c0b002eecd5d95dbe42f2e0a7f5b7
Showing with 1 addition and 1 deletion.
  1. +1 −1 sumo.rb
View
@@ -60,9 +60,9 @@ def start
# poll until dns_name becomes available
loop do
+ sleep 2
instance = ec2.describe_instances(instance[:aws_instance_id]).first rescue {}
break if instance.has_key?(:dns_name) and !instance[:dns_name].empty?
- sleep 2
end
put(instance)
end

0 comments on commit 8f52c55

Please sign in to comment.