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

[aws] fix state transitions in terminate_instances mock

This commit is contained in:
geemus (Wesley Beary) 2010-04-09 19:21:59 -07:00
parent 2c3f89ce48
commit 3aadefe82a

View file

@ -47,7 +47,7 @@ module Fog
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'