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:
parent
2c3f89ce48
commit
3aadefe82a
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue