lib/rubber/recipes/rubber/volumes.rb in axtro-rubber-1.0.2.5 vs lib/rubber/recipes/rubber/volumes.rb in axtro-rubber-1.0.2.6

- old
+ new

@@ -94,14 +94,12 @@ print "Waiting for volume to attach" while true do print "." sleep 2 volume = cloud.describe_volumes(vol_id).first - break if volume[:status] == "in-use" + break if volume[:status] == "in-use" and volume[:attachment_status] == "attached" end - print "\n" - print "Waiting an extra 15s just to make sure... :)" - sleep 15 + sleep 2 print "\n" # we don't mount/format at this time if we are doing a RAID array if vol_spec['mount'] && vol_spec['filesystem'] # then format/mount/etc if we don't have an entry in hosts file