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 +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/vra/catalog_request.rb +2 -2
- data/lib/vra/client.rb +0 -1
- data/lib/vra/exceptions.rb +5 -1
- data/lib/vra/resource.rb +1 -2
- data/lib/vra/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c17a3b7656e82f51ab5fa1b7a6edb767be2d7123
|
4
|
+
data.tar.gz: 508bf5aa0b5d67fb200573875746923f7319b217
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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:**
|
data/lib/vra/catalog_request.rb
CHANGED
@@ -73,8 +73,8 @@ module Vra
|
|
73
73
|
hash_payload["description"] = @notes
|
74
74
|
|
75
75
|
parameters.each do |param|
|
76
|
-
if hash_payload[
|
77
|
-
hash_payload[
|
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
data/lib/vra/exceptions.rb
CHANGED
@@ -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
|
-
|
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
|
159
|
+
def ip_addresses
|
161
160
|
return if !vm? || network_interfaces.nil?
|
162
161
|
|
163
162
|
addrs = []
|
data/lib/vra/version.rb
CHANGED