lib/fog/aws/requests/ec2/describe_instances.rb in fog-0.2.15 vs lib/fog/aws/requests/ec2/describe_instances.rb in fog-0.2.16
- old
+ new
@@ -91,10 +91,10 @@
when 'shutting-down'
if Time.now - @data[:deleted_at][instance['instanceId']] > Fog::Mock.delay * 2
@data[:deleted_at].delete(instance['instanceId'])
@data[:instances].delete(instance['instanceId'])
elsif Time.now - @data[:deleted_at][instance['instanceId']] > Fog::Mock.delay
- instance['instanceState'] = { 'code' => 16, 'name' => 'terminating' }
+ instance['instanceState'] = { 'code' => 48, 'name' => 'terminating' }
end
when 'terminating'
if Time.now - @data[:deleted_at][instance['instanceId']] > Fog::Mock.delay
@data[:deleted_at].delete(instance['instanceId'])
@data[:instances].delete(instance['instanceId'])