Skip to content

Commit

Permalink
[aws] fix state transitions in terminate_instances mock
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus (Wesley Beary) committed Apr 10, 2010
1 parent 2c3f89c commit 3aadefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/ec2/terminate_instances.rb
Expand Up @@ -47,7 +47,7 @@ def terminate_instances(instance_id)
instance = @data[:instances][id]
@data[:deleted_at][id] = Time.now
# TODO: the codes are mostly educated guessing, not certainty
code = case instance['state']
code = case instance['instanceState']['name']
when 'pending'
0
when 'running'
Expand Down

0 comments on commit 3aadefe

Please sign in to comment.