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(a)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(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondra Machacek <omachace(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>