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

[ec2] wait for volume to be ready before describing

This commit is contained in:
geemus 2010-06-10 11:43:59 -07:00
parent 8e0aa53d3c
commit afd711cb08

View file

@ -45,6 +45,8 @@ Shindo.tests('AWS::EC2 | volume requests', ['aws']) do
data
end
AWS[:ec2].volumes.get(@volume_id).wait_for { ready? }
tests('#describe_volumes').formats(@volumes_format) do
AWS[:ec2].describe_volumes.body
end
@ -53,8 +55,6 @@ Shindo.tests('AWS::EC2 | volume requests', ['aws']) do
AWS[:ec2].describe_volumes.body
end
AWS[:ec2].volumes.get(@volume_id).wait_for { ready? }
tests("#attach_volume(#{@server.identity}, #{@volume_id}, '/dev/sdh')").formats(@volume_attachment_format) do
AWS[:ec2].attach_volume(@server.identity, @volume_id, '/dev/sdh').body
end