From Ondra Machacek <omachace(a)redhat.com>:
Ondra Machacek has submitted this change and it was merged.
Change subject: Ignore unsupported Enum values
......................................................................
Ignore unsupported Enum values
If Python SDK is used with engine which has some new functionality
implemented, which is not supported by Python SDK, the Python SDK
should ignore those new elements.
For example if new version of API will implement new Enum value for,
RngSource, the old Python SDK should ignore this element, and read
only the elements the Python SDK understand.
Change-Id: I18ddbb0f0649840bf4cff14d1b3186d49e98e860
Signed-off-by: Ondra Machacek <omachace(a)redhat.com>
(cherry picked from commit 54e032f963d48490808cde559701189f325cadf0)
---
M generator/src/main/java/org/ovirt/sdk/python/ReadersGenerator.java
M sdk/lib/ovirtsdk4/reader.py
M sdk/tests/test_cluster_reader.py
M sdk/tests/test_network_reader.py
4 files changed, 77 insertions(+), 2 deletions(-)
Approvals:
Ondra Machacek: Verified; Looks good to me, approved
Jenkins CI: Passed CI tests
--
To view, visit
https://gerrit.ovirt.org/73301
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I18ddbb0f0649840bf4cff14d1b3186d49e98e860
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: sdk_4.1
Gerrit-Owner: Ondra Machacek <omachace(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondra Machacek <omachace(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>