Change in ovirt-engine-sdk-ruby[sdk_4.1]: Ignore unsupported Enum values

Code Review gerrit at ovirt.org
Wed Mar 1 18:28:53 UTC 2017


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

Juan Hernandez has submitted this change and it was merged.

Change subject: Ignore unsupported Enum values
......................................................................


Ignore unsupported Enum values

If Ruby SDK is used with engine which has some new functionality
implemented, which is not supported by Ruby SDK, the Ruby SDK
should ignore those new elements.

For example if new version of API will implement new Enum value for,
RngSource, the old Ruby SDK should ignore this element, and read
only the elements the Ruby SDK understand.

Change-Id: Ice6b822548008ada589e1b78258c1611527a5df6
Signed-off-by: Ondra Machacek <omachace at redhat.com>
(cherry picked from commit 1ebb796edfebc0b9b58840e3a4e640c49b57c93e)
---
M generator/src/main/java/org/ovirt/sdk/ruby/ReadersGenerator.java
M sdk/lib/ovirtsdk4/reader.rb
M sdk/spec/cluster_reader_spec.rb
M sdk/spec/vm_reader_spec.rb
4 files changed, 80 insertions(+), 4 deletions(-)

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



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ice6b822548008ada589e1b78258c1611527a5df6
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk-ruby
Gerrit-Branch: sdk_4.1
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