1
0
Fork 0
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:
geemus (Wesley Beary) 2010-04-01 11:33:41 -07:00
parent e73db7902a
commit 4b17941d77
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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