1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

fix case where volume isn't instantly available to attach upon creation

This commit is contained in:
AltJ 2013-04-16 18:38:46 -06:00
parent 125834de89
commit 2388513557

View file

@ -108,6 +108,7 @@ module Fog
self.availability_zone = new_server.availability_zone self.availability_zone = new_server.availability_zone
elsif new_server elsif new_server
requires :device requires :device
wait_for { ready? }
@server = nil @server = nil
self.server_id = new_server.id self.server_id = new_server.id
service.attach_volume(server_id, id, device) service.attach_volume(server_id, id, device)