bosh_aws_cpi 1.2992.0 → 1.2999.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 161bccd1a02f77f5c44caada4be4ace8557996d0
4
- data.tar.gz: 244ec285585ea16f80ac0f1919f8cdc999fd225e
3
+ metadata.gz: 9bbbb535292db214438511b776a6479a31de9eb4
4
+ data.tar.gz: 9e3e2b6eec31e07d9ff6897505b3dca70beb8715
5
5
  SHA512:
6
- metadata.gz: 8c66e5cd0a0ddd21b5a8f55307ea26ef6aef70510ede200ee0c6b35d7136f1684826f457fef3fff7efd413f65daced7e98ee1e1eb24bdb861ca7dc31cb74c455
7
- data.tar.gz: da9f62f7108eb9a4ce5992d5b0b9b5dd6b464c8e500f9385484c677605b7a41582790891165685281d9e724606db5ffd7b43a742ddd11782dbd01b96d1eae63a
6
+ metadata.gz: 14e84fa0866daa7bbf05245032a65ac795332a454e46689b0b4a418f5eebc8e208e54a86c9691706ea418945495a39a4f261acd49ff251e831ee64412ebcb61a
7
+ data.tar.gz: f6ba831b7710019a7809e8fd9ea8e87c2d569cce34498591e7b7fdccc9add738d4fa30e2c8c273e8f5c87f2a46bab23a9264a699db2dcca5b66efc5aee3d7ab0
@@ -349,7 +349,7 @@ module Bosh::AwsCloud
349
349
  TagManager.tag(snapshot, 'device', devices.first) unless devices.empty?
350
350
  TagManager.tag(snapshot, 'Name', name.join('/'))
351
351
 
352
- ResourceWait.for_snapshot(snapshot: snapshot, states: [:pending, :completed])
352
+ ResourceWait.for_snapshot(snapshot: snapshot, state: :completed)
353
353
  snapshot.id
354
354
  end
355
355
  end
@@ -96,12 +96,12 @@ module Bosh::AwsCloud
96
96
 
97
97
  def self.for_snapshot(args)
98
98
  snapshot = args.fetch(:snapshot) { raise ArgumentError, 'snapshot object required' }
99
- target_states = args.fetch(:states) { raise ArgumentError, 'states array required' }
100
- valid_states = [:pending, :completed]
101
- target_states.each { |target_state| validate_states(valid_states, target_state) }
99
+ target_state = args.fetch(:state) { raise ArgumentError, 'state symbol required' }
100
+ valid_states = [:completed]
101
+ validate_states(valid_states, target_state)
102
102
 
103
- new.for_resource(resource: snapshot, target_state: target_states, tries: 18) do |current_state|
104
- target_states.include? current_state
103
+ new.for_resource(resource: snapshot, target_state: target_state, tries: 18) do |current_state|
104
+ current_state == target_state
105
105
  end
106
106
  end
107
107
 
@@ -19,7 +19,7 @@ module Bosh::AwsCloud
19
19
  copy_root_image
20
20
 
21
21
  snapshot = volume.create_snapshot
22
- ResourceWait.for_snapshot(snapshot: snapshot, states: [:completed])
22
+ ResourceWait.for_snapshot(snapshot: snapshot, state: :completed)
23
23
 
24
24
  params = image_params(snapshot.id)
25
25
  image = region.images.create(params)
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module AwsCloud
3
- VERSION = '1.2992.0'
3
+ VERSION = '1.2999.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh_aws_cpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2992.0
4
+ version: 1.2999.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-18 00:00:00.000000000 Z
11
+ date: 2015-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -30,42 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2992.0
33
+ version: 1.2999.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.2992.0
40
+ version: 1.2999.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bosh_cpi
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.2992.0
47
+ version: 1.2999.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.2992.0
54
+ version: 1.2999.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bosh-registry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2992.0
61
+ version: 1.2999.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2992.0
68
+ version: 1.2999.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: httpclient
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -138,7 +138,7 @@ dependencies:
138
138
  version: '0'
139
139
  description: |-
140
140
  BOSH AWS CPI
141
- 2996bb
141
+ 321dd5
142
142
  email: support@cloudfoundry.com
143
143
  executables:
144
144
  - aws_cpi