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 +4 -4
- data/lib/cloud/aws/cloud.rb +1 -1
- data/lib/cloud/aws/resource_wait.rb +5 -5
- data/lib/cloud/aws/stemcell_creator.rb +1 -1
- data/lib/cloud/aws/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bbbb535292db214438511b776a6479a31de9eb4
|
4
|
+
data.tar.gz: 9e3e2b6eec31e07d9ff6897505b3dca70beb8715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14e84fa0866daa7bbf05245032a65ac795332a454e46689b0b4a418f5eebc8e208e54a86c9691706ea418945495a39a4f261acd49ff251e831ee64412ebcb61a
|
7
|
+
data.tar.gz: f6ba831b7710019a7809e8fd9ea8e87c2d569cce34498591e7b7fdccc9add738d4fa30e2c8c273e8f5c87f2a46bab23a9264a699db2dcca5b66efc5aee3d7ab0
|
data/lib/cloud/aws/cloud.rb
CHANGED
@@ -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,
|
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
|
-
|
100
|
-
valid_states = [:
|
101
|
-
|
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:
|
104
|
-
|
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,
|
22
|
+
ResourceWait.for_snapshot(snapshot: snapshot, state: :completed)
|
23
23
|
|
24
24
|
params = image_params(snapshot.id)
|
25
25
|
image = region.images.create(params)
|
data/lib/cloud/aws/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
-
|
141
|
+
321dd5
|
142
142
|
email: support@cloudfoundry.com
|
143
143
|
executables:
|
144
144
|
- aws_cpi
|