fog 0.0.63 → 0.0.64
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml
CHANGED
data/fog.gemspec
CHANGED
@@ -80,11 +80,14 @@ module Fog
|
|
80
80
|
when 'rebooting'
|
81
81
|
instance['instanceState'] = { 'code' => 16, 'name' => 'running' }
|
82
82
|
when 'shutting-down'
|
83
|
-
if Time.now - @data[:deleted_at][instance['instanceId']] >
|
83
|
+
if Time.now - @data[:deleted_at][instance['instanceId']] > 1
|
84
84
|
instance['instanceState'] = { 'code' => 16, 'name' => 'terminating' }
|
85
|
+
elsif Time.now - @data[:deleted_at][instance['instanceId']] > 2
|
86
|
+
@data[:deleted_at].delete(instance['instanceId'])
|
87
|
+
@data[:instances].delete(instance['instanceId'])
|
85
88
|
end
|
86
89
|
when 'terminating'
|
87
|
-
if Time.now - @data[:deleted_at][instance['instanceId']] >
|
90
|
+
if Time.now - @data[:deleted_at][instance['instanceId']] > 1
|
88
91
|
@data[:deleted_at].delete(instance['instanceId'])
|
89
92
|
@data[:instances].delete(instance['instanceId'])
|
90
93
|
end
|