vmware-vra 2.1.2 → 2.1.3

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: 7abc6be8997ef1e672e7a35c927a07547f04c089
4
- data.tar.gz: 22b676d130a0bccc251bbddfdc690022739c21ff
3
+ metadata.gz: c17a3b7656e82f51ab5fa1b7a6edb767be2d7123
4
+ data.tar.gz: 508bf5aa0b5d67fb200573875746923f7319b217
5
5
  SHA512:
6
- metadata.gz: 665f91dd5bd9a5c823b816c203b0b12f4a43d4658698ec217ba03971fbcb8c9eb4906e578ec779d436eeedd2920c19e1a6792ea49a7ee686ef6faf597d43e0ec
7
- data.tar.gz: d0880820370d71ba5a3037f513242f3d7d42074ea305b71362108a7b0e677fb97ba3a96e731d9d703da4afac317939c1e1802989df9f178ed6c9bd150234e697
6
+ metadata.gz: 02b53f914de13e310fda78f0f3995475b272dfbc43b105a5c79bddb80638eea4723b885ebca76ee1e99b3c63a8c47dd18744162bf1e7b6ae94678acadf488847
7
+ data.tar.gz: 4d8665af8d99659326d9a39f927f021ad5599ad5acf324d247834ec700344bdf86062cd48860f473bd136b8c7ff1bd417727c48b688fb44989b2bc508856f93b
data/CHANGELOG.md CHANGED
@@ -1,7 +1,14 @@
1
1
  # Change Log
2
2
 
3
- ## [v2.1.2](https://github.com/chef-partners/vmware-vra-gem/tree/v2.1.2)
3
+ ## [v2.1.3](https://github.com/chef-partners/vmware-vra-gem/tree/v2.1.3)
4
4
 
5
+ [Full Changelog](https://github.com/chef-partners/vmware-vra-gem/compare/v2.1.2...v2.1.3)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Fixing missing messages from some HTTP exceptions [\#43](https://github.com/chef-partners/vmware-vra-gem/pull/43) ([nsdavidson](https://github.com/nsdavidson))
10
+
11
+ ## [v2.1.2](https://github.com/chef-partners/vmware-vra-gem/tree/v2.1.2) (2017-03-28)
5
12
  [Full Changelog](https://github.com/chef-partners/vmware-vra-gem/compare/v2.1.1...v2.1.2)
6
13
 
7
14
  **Merged pull requests:**
@@ -73,8 +73,8 @@ module Vra
73
73
  hash_payload["description"] = @notes
74
74
 
75
75
  parameters.each do |param|
76
- if hash_payload['data'].key? param.key
77
- hash_payload['data'][param.key] = param.value
76
+ if hash_payload["data"].key? param.key
77
+ hash_payload["data"][param.key] = param.value
78
78
  else
79
79
  hash_payload["data"][blueprint_name]["data"][param.key] = param.value
80
80
  end
data/lib/vra/client.rb CHANGED
@@ -22,7 +22,6 @@ require "passwordmasker"
22
22
  require "vra/http"
23
23
 
24
24
  module Vra
25
- # rubocop:disable ClassLength
26
25
  class Client
27
26
  attr_accessor :page_size
28
27
 
@@ -49,7 +49,11 @@ module Vra
49
49
  return unless data["errors"].respond_to?(:each)
50
50
 
51
51
  data["errors"].each do |error|
52
- @errors << error["systemMessage"]
52
+ if error["systemMessage"]
53
+ @errors << error["systemMessage"]
54
+ else
55
+ @errors << error["message"]
56
+ end
53
57
  end
54
58
  end
55
59
  end
data/lib/vra/resource.rb CHANGED
@@ -20,7 +20,6 @@
20
20
  require "ffi_yajl"
21
21
 
22
22
  module Vra
23
- # rubocop:disable ClassLength
24
23
  class Resource
25
24
  attr_reader :client, :id, :resource_data
26
25
 
@@ -157,7 +156,7 @@ module Vra
157
156
  end
158
157
  end
159
158
 
160
- def ip_addresses # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
159
+ def ip_addresses
161
160
  return if !vm? || network_interfaces.nil?
162
161
 
163
162
  addrs = []
data/lib/vra/version.rb CHANGED
@@ -18,5 +18,5 @@
18
18
  #
19
19
 
20
20
  module Vra
21
- VERSION = "2.1.2"
21
+ VERSION = "2.1.3"
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmware-vra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Leff