Change in ovirt-engine-sdk[sdk_4.0]: Avoid of reading fault response in case response body is empty
omachace at redhat.com
omachace at redhat.com
Wed Aug 31 17:09:59 UTC 2016
Ondra Machacek has submitted this change and it was merged.
Change subject: Avoid of reading fault response in case response body is empty
......................................................................
Avoid of reading fault response in case response body is empty
In case there is 404 returned from API, we try to parse response body,
but in this case it's useless and returned exception previously,
this patch changes it, so we don't parse response in case it's empty.
Change-Id: Ia3c6e7bee7a1926cc007db9477640d675487dbe6
Signed-off-by: Ondra Machacek <omachace at redhat.com>
(cherry picked from commit 1be141f8903117ab5e4535d7c7de9cd16a4753ce)
---
M sdk/lib/ovirtsdk4/service.py
1 file changed, 5 insertions(+), 4 deletions(-)
Approvals:
Ondra Machacek: Verified; Looks good to me, approved
Jenkins CI: Passed CI tests
--
To view, visit https://gerrit.ovirt.org/63059
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia3c6e7bee7a1926cc007db9477640d675487dbe6
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