Skip to content

Commit

Permalink
[ec2] remove debug print line, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus committed May 22, 2010
1 parent 881e725 commit 8e0b2bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/ec2/describe_volumes.rb
Expand Up @@ -51,7 +51,7 @@ def describe_volumes(volume_id = [])
when 'attaching'
if Time.now - volume['attachmentSet'].first['attachTime'] > Fog::Mock.delay
volume['attachmentSet'].first['status'] = 'in-use'
volume['status'] = 'in_use'
volume['status'] = 'in-use'
end
when 'creating'
if Time.now - volume['createTime'] > Fog::Mock.delay
Expand Down
2 changes: 1 addition & 1 deletion tests/aws/requests/ec2/volume_tests.rb
Expand Up @@ -27,7 +27,7 @@
end

tests("#detach_volume('#{@volume_id}')").formats(AWS::EC2::Formats::VOLUME_ATTACHMENT) do
AWS[:ec2].volumes.get(@volume_id).wait_for { p state; state == 'in-use' }
AWS[:ec2].volumes.get(@volume_id).wait_for { state == 'in-use' }
AWS[:ec2].detach_volume(@volume_id).body
end

Expand Down

0 comments on commit 8e0b2bf

Please sign in to comment.