From 238851355724dfa466304e69fc4034e8bf68c11c Mon Sep 17 00:00:00 2001 From: AltJ Date: Tue, 16 Apr 2013 18:38:46 -0600 Subject: [PATCH] fix case where volume isn't instantly available to attach upon creation --- lib/fog/aws/models/compute/volume.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fog/aws/models/compute/volume.rb b/lib/fog/aws/models/compute/volume.rb index 8fb245e40..c642f1d0f 100644 --- a/lib/fog/aws/models/compute/volume.rb +++ b/lib/fog/aws/models/compute/volume.rb @@ -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)