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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60af9af7fc57a123eb842883a56a4d5a2ae3b96c
4
- data.tar.gz: 2725dd2f351f3db4b481afe28201a67162cd4e73
3
+ metadata.gz: a664f2f3a08a9b8163e1352a81aa96724e6c709e
4
+ data.tar.gz: bd0a8a8dd46f96d3ff60b3e37bbdb5bbd2b2fb7c
5
5
  SHA512:
6
- metadata.gz: 1c3f85cf62bbd53c15e79e2e591a18d4d835b54e66913872a3b26b72f746dc0554155b9b4f40ffccf721027657eedc8b520e70e93539021fa2e901cfd8288b5f
7
- data.tar.gz: d2803dfa019e440e77373f3e7ba899cc6dac3cfb38a1d976c6cbfd64ecfb071f5257f5e64f1f1cf2ec11ff0c12e8a1b4ba6425bcdc5952ac15ac761e0a5497d5
6
+ metadata.gz: 589327b1494b64cca0c065b860848a1246d85289230d5982c2b4fbd514f5af100d666126875c41075fe0e5000278565f1c35df40e88fa98398ff234a3be06941
7
+ data.tar.gz: 0ca1057bfbe47e663ec5f9d7428dc325ac174223cb17dfdf14f360de081c0fc6f737f1ae57cb7c0a320def9a960308c7b893c8ec08eea8137516c4fb8288774b
data/lib/bosh/cpi/cli.rb CHANGED
@@ -19,7 +19,6 @@ class Bosh::Cpi::Cli
19
19
  delete_snapshot
20
20
  get_disks
21
21
  ping
22
- calculate_vm_cloud_properties
23
22
  ).freeze
24
23
 
25
24
  RPC_METHOD_TO_RUBY_METHOD = {
@@ -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'], method_name)
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, method_name)
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}' in '#{method_name}' CPI method"
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, "CPI error '#{error_type}' with message '#{error_message}' in '#{method_name}' CPI method"
119
+ raise error, error_message
120
120
  end
121
121
 
122
122
  def save_cpi_log(output)
data/lib/cloud/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Clouds
3
- VERSION = '1.3262.1'
3
+ VERSION = '1.3262.4.0'
4
4
  end
5
5
  end
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.1
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-13 00:00:00.000000000 Z
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.1
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.1
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.5.1
137
+ rubygems_version: 2.2.2
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: BOSH CPI