fog 0.0.63 → 0.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 63
4
+ :patch: 64
5
5
  :build:
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fog}
8
- s.version = "0.0.63"
8
+ s.version = "0.0.64"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["geemus (Wesley Beary)"]
@@ -49,7 +49,7 @@ module Fog
49
49
  'status' => 'attaching',
50
50
  'volumeId' => volume_id
51
51
  }
52
- volume['attachmentSet'] << data
52
+ volume['attachmentSet'] = [data]
53
53
  response.status = 200
54
54
  response.body = {
55
55
  'requestId' => Fog::AWS::Mock.request_id
@@ -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']] > 2
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']] > 4
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 63
9
- version: 0.0.63
8
+ - 64
9
+ version: 0.0.64
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)