mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[ec2] ensure mock describes don't return deleted stuff
This commit is contained in:
parent
e73db7902a
commit
4b17941d77
2 changed files with 2 additions and 0 deletions
|
@ -90,6 +90,7 @@ module Fog
|
||||||
if Time.now - @data[:deleted_at][instance['instanceId']] > 1
|
if Time.now - @data[:deleted_at][instance['instanceId']] > 1
|
||||||
@data[:deleted_at].delete(instance['instanceId'])
|
@data[:deleted_at].delete(instance['instanceId'])
|
||||||
@data[:instances].delete(instance['instanceId'])
|
@data[:instances].delete(instance['instanceId'])
|
||||||
|
instance_set.delete(instance)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -61,6 +61,7 @@ module Fog
|
||||||
if Time.now - @data[:deleted_at][volume['volumeId']] > 1
|
if Time.now - @data[:deleted_at][volume['volumeId']] > 1
|
||||||
@data[:deleted_at].delete(volume['volumeId'])
|
@data[:deleted_at].delete(volume['volumeId'])
|
||||||
@data[:volumes].delete(volume['volumeId'])
|
@data[:volumes].delete(volume['volumeId'])
|
||||||
|
volume_set.delete(volume)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue