Change in ovirt-engine-sdk-ruby[sdk_4.0]: Read correctly attributes with enum values

Code Review gerrit at ovirt.org
Fri Mar 3 10:47:33 UTC 2017


>From Juan Hernandez <juan.hernandez at redhat.com>:

Juan Hernandez has submitted this change and it was merged.

Change subject: Read correctly attributes with enum values
......................................................................


Read correctly attributes with enum values

A recent patch introduced a mechanism to ignore incorrect values of enum
types. That patch also introduced a regresion for attributes of enum
types that have a name different to their type name. For example, the
'vm.migration.auto_converge' attribute is of type 'InheritableBoolean',
not of type 'AutoConverge' as assumed by the code generator. This patch
fixes that issue.

Change-Id: Ie0e67fd4ecf6e38b9e23c6b6cd929db1836adafd
Bug-Url: https://bugzilla.redhat.com/1428642
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit 2d67acfe71e6beb7641be052b62427b543923e97)
---
M generator/src/main/java/org/ovirt/sdk/ruby/ReadersGenerator.java
M sdk/lib/ovirtsdk4/reader.rb
M sdk/spec/vm_reader_spec.rb
3 files changed, 63 insertions(+), 16 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/73507
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie0e67fd4ecf6e38b9e23c6b6cd929db1836adafd
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine-sdk-ruby
Gerrit-Branch: sdk_4.0
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>


More information about the Engine-commits mailing list