bosh_cpi 1.3262.1 → 1.3262.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bosh/cpi/cli.rb +0 -1
- data/lib/cloud/external_cpi.rb +4 -4
- data/lib/cloud/version.rb +1 -1
- data/lib/cloud.rb +0 -8
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a664f2f3a08a9b8163e1352a81aa96724e6c709e
|
4
|
+
data.tar.gz: bd0a8a8dd46f96d3ff60b3e37bbdb5bbd2b2fb7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 589327b1494b64cca0c065b860848a1246d85289230d5982c2b4fbd514f5af100d666126875c41075fe0e5000278565f1c35df40e88fa98398ff234a3be06941
|
7
|
+
data.tar.gz: 0ca1057bfbe47e663ec5f9d7428dc325ac174223cb17dfdf14f360de081c0fc6f737f1ae57cb7c0a320def9a960308c7b893c8ec08eea8137516c4fb8288774b
|
data/lib/bosh/cpi/cli.rb
CHANGED
data/lib/cloud/external_cpi.rb
CHANGED
@@ -85,7 +85,7 @@ module Bosh::Clouds
|
|
85
85
|
validate_response(parsed_response)
|
86
86
|
|
87
87
|
if parsed_response['error']
|
88
|
-
handle_error(parsed_response['error']
|
88
|
+
handle_error(parsed_response['error'])
|
89
89
|
end
|
90
90
|
|
91
91
|
save_cpi_log(parsed_response['log'])
|
@@ -101,11 +101,11 @@ module Bosh::Clouds
|
|
101
101
|
@cpi_path
|
102
102
|
end
|
103
103
|
|
104
|
-
def handle_error(error_response
|
104
|
+
def handle_error(error_response)
|
105
105
|
error_type = error_response['type']
|
106
106
|
error_message = error_response['message']
|
107
107
|
unless KNOWN_RPC_ERRORS.include?(error_type)
|
108
|
-
raise UnknownError, "Unknown CPI error '#{error_type}' with message '#{error_message}'
|
108
|
+
raise UnknownError, "Unknown CPI error '#{error_type}' with message '#{error_message}'"
|
109
109
|
end
|
110
110
|
|
111
111
|
error_class = constantize(error_type)
|
@@ -116,7 +116,7 @@ module Bosh::Clouds
|
|
116
116
|
error = error_class.new(error_message)
|
117
117
|
end
|
118
118
|
|
119
|
-
raise error,
|
119
|
+
raise error, error_message
|
120
120
|
end
|
121
121
|
|
122
122
|
def save_cpi_log(output)
|
data/lib/cloud/version.rb
CHANGED
data/lib/cloud.rb
CHANGED
@@ -210,14 +210,6 @@ module Bosh
|
|
210
210
|
not_implemented(:get_disks)
|
211
211
|
end
|
212
212
|
|
213
|
-
# Specify VM's hardware resources
|
214
|
-
# @param [Hash] vm_properties (typically cpu, ram, ephemeral_disk_size)
|
215
|
-
# @return [Hash] opaque description of the VM's configuration that
|
216
|
-
# can be used with {#create_vm}
|
217
|
-
def calculate_vm_cloud_properties(vm_properties)
|
218
|
-
not_implemented(:calculate_vm_cloud_properties)
|
219
|
-
end
|
220
|
-
|
221
213
|
private
|
222
214
|
|
223
215
|
def not_implemented(method)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh_cpi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3262.
|
4
|
+
version: 1.3262.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VMware
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bosh_common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.3262.
|
19
|
+
version: 1.3262.4.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.3262.
|
26
|
+
version: 1.3262.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: membrane
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.2.2
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: BOSH CPI
|