ovirt-engine-sdk 4.0.0.alpha17 → 4.0.0.alpha18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce9389281f2ddfab01ca6c8f3e03c624e7f7cf9a
4
- data.tar.gz: 6ecf6470fdc6d187c9b1cad45b6f77031b571fe8
3
+ metadata.gz: e70afe61d9ab8d67da5c68fa4f213934a9dd31a2
4
+ data.tar.gz: dae7a31bc0b80f1cfc638075f88eb1f8fa75b712
5
5
  SHA512:
6
- metadata.gz: 449d95c01643e4f4e00392df03f62704268a5175071fb410464998de70571df08fc2c445e07ab3d4a5431bd48d89b1534bd43363ab8a08e7bdbf2978879530d6
7
- data.tar.gz: b6a5248e41f84c20a43abe79fba38efe4aff3b381adf3266033f6c35d052ba4b10999f13dc5082d71e6b3856e20193ea6aef6dcc6b53875afa52f56ebf45b5d3
6
+ metadata.gz: 97622bd81667d45e1bddafe41eaad5a6d03423b9f848439c6271af07cbf2a0db19161c26487804c5962cf039b4071f6790401840003aec69e12fa3f4af081e3c
7
+ data.tar.gz: abf19ca83d8707a976a56b020f94303e96313254aaaa806c6385c2cdd3d9641c67b64eb3ba28e91af541f202bed77aa6127e77725c3de95858bdf58fc13923dc
data/CHANGES.adoc CHANGED
@@ -3,6 +3,17 @@
3
3
  This document describes the relevant changes between releases of the
4
4
  API model.
5
5
 
6
+ == 4.0.0.alpha18 / Jul 29 2016
7
+
8
+ Update to model 4.0.29:
9
+
10
+ Bug fixes:
11
+
12
+ * Add `logical_name` attribute to the disk attachment type.
13
+
14
+ * Fix the name of the parameter to get virtual machine from affinity
15
+ label, should be `vm` instead of `host`.
16
+
6
17
  == 4.0.0.alpha17 / Jul 19 2016
7
18
 
8
19
  Update to model 4.0.28.
@@ -445,9 +445,6 @@ module OvirtSDK4
445
445
  # @api private
446
446
  #
447
447
  def build_sso_auth_url
448
- # Get the base URL:
449
- sso_url = @url.to_s[0..@url.to_s.rindex('/')]
450
-
451
448
  # The SSO access scope:
452
449
  scope = 'ovirt-app-api'
453
450
 
@@ -460,8 +457,14 @@ module OvirtSDK4
460
457
  entry_point = 'token'
461
458
  end
462
459
 
463
- # Build and return the SSO URL:
464
- return "#{sso_url}sso/oauth/#{entry_point}?grant_type=#{grant_type}&scope=#{scope}"
460
+ # Copy the base URL and modify it to point to the SSO authentication service:
461
+ url = URI(@url.to_s)
462
+ url.path = "/ovirt-engine/sso/oauth/#{entry_point}"
463
+ url.query = URI.encode_www_form(
464
+ :grant_type => grant_type,
465
+ :scope => scope,
466
+ )
467
+ url.to_s
465
468
  end
466
469
 
467
470
  #
@@ -471,11 +474,14 @@ module OvirtSDK4
471
474
  # @api private
472
475
  #
473
476
  def build_sso_revoke_url
474
- # Get the base URL:
475
- sso_url = @url.to_s[0..@url.to_s.rindex('/')]
476
-
477
- # Build and return the SSO revoke URL:
478
- return "#{sso_url}services/sso-logout?scope=&token=#{@sso_token}"
477
+ # Copy the base URL and modify it to point to the SSO logout service:
478
+ url = URI(@url.to_s)
479
+ url.path = '/ovirt-engine/services/sso-logout'
480
+ url.query = URI.encode_www_form(
481
+ :scope => '',
482
+ :token => @sso_token,
483
+ )
484
+ url.to_s
479
485
  end
480
486
 
481
487
  #
@@ -63,11 +63,14 @@ module OvirtSDK4
63
63
  # @api private
64
64
  #
65
65
  def check_fault(response)
66
- begin
67
- reader = XmlReader.new(response.body)
68
- fault = FaultReader.read_one(reader)
69
- ensure
70
- reader.close
66
+ fault = nil
67
+ unless response.body.to_s.empty?
68
+ begin
69
+ reader = XmlReader.new(response.body)
70
+ fault = FaultReader.read_one(reader)
71
+ ensure
72
+ reader.close
73
+ end
71
74
  end
72
75
  raise_error(response, fault)
73
76
  end
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.0.0.alpha17'
19
+ VERSION = '4.0.0.alpha18'
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ovirt-engine-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.alpha17
4
+ version: 4.0.0.alpha18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Hernandez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-19 00:00:00.000000000 Z
11
+ date: 2016-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb
@@ -78,25 +78,25 @@ files:
78
78
  - LICENSE.txt
79
79
  - README.adoc
80
80
  - ext/ovirtsdk4c/extconf.rb
81
+ - ext/ovirtsdk4c/ov_error.c
82
+ - ext/ovirtsdk4c/ov_xml_writer.c
81
83
  - ext/ovirtsdk4c/ov_module.c
82
84
  - ext/ovirtsdk4c/ovirtsdk4c.c
83
- - ext/ovirtsdk4c/ov_xml_writer.c
84
- - ext/ovirtsdk4c/ov_error.c
85
85
  - ext/ovirtsdk4c/ov_xml_reader.c
86
86
  - ext/ovirtsdk4c/ov_xml_writer.h
87
- - ext/ovirtsdk4c/ov_module.h
88
87
  - ext/ovirtsdk4c/ov_xml_reader.h
88
+ - ext/ovirtsdk4c/ov_module.h
89
89
  - ext/ovirtsdk4c/ov_error.h
90
- - lib/ovirtsdk4/reader.rb
91
- - lib/ovirtsdk4/writer.rb
92
90
  - lib/ovirtsdk4/type.rb
91
+ - lib/ovirtsdk4/service.rb
93
92
  - lib/ovirtsdk4/readers.rb
93
+ - lib/ovirtsdk4/version.rb
94
+ - lib/ovirtsdk4/http.rb
94
95
  - lib/ovirtsdk4/services.rb
95
- - lib/ovirtsdk4/types.rb
96
96
  - lib/ovirtsdk4/writers.rb
97
- - lib/ovirtsdk4/http.rb
98
- - lib/ovirtsdk4/service.rb
99
- - lib/ovirtsdk4/version.rb
97
+ - lib/ovirtsdk4/writer.rb
98
+ - lib/ovirtsdk4/types.rb
99
+ - lib/ovirtsdk4/reader.rb
100
100
  - lib/ovirtsdk4.rb
101
101
  homepage: http://ovirt.org
102
102
  licenses: