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:
parent
8e0aa53d3c
commit
afd711cb08
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue