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:
parent
125834de89
commit
2388513557
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ module Fog
|
|||
self.availability_zone = new_server.availability_zone
|
||||
elsif new_server
|
||||
requires :device
|
||||
wait_for { ready? }
|
||||
@server = nil
|
||||
self.server_id = new_server.id
|
||||
service.attach_volume(server_id, id, device)
|
||||
|
|
Loading…
Reference in a new issue