Change in ovirt-engine-sdk[sdk_4.0]: Empty list is not written to XML

omachace at redhat.com omachace at redhat.com
Thu Sep 22 18:46:40 UTC 2016


Ondra Machacek has submitted this change and it was merged.

Change subject: Empty list is not written to XML
......................................................................


Empty list is not written to XML

When the user wants to send an empty list to the server, it is not
currently possible. For example when the user wants to create non VM
network he has to send an empty usages element. But if he sets the
"Network.usages" attribute to empty list, the empty usages element isn't
sent.

This patch fixes that.

Change-Id: I66bc71cf5c4757fff57b3143218488315dc218b8
Signed-off-by: Ondra Machacek <omachace at redhat.com>
(cherry picked from commit 19a123cbf8d3daa70f99432f9c469eae90a6beb2)
---
M generator/src/main/java/org/ovirt/sdk/python/WritersGenerator.java
A sdk/tests/test_network_writer.py
2 files changed, 127 insertions(+), 1 deletion(-)

Approvals:
  Ondra Machacek: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I66bc71cf5c4757fff57b3143218488315dc218b8
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: sdk_4.0
Gerrit-Owner: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list