Nir Soffer has submitted this change and it was merged. Change subject: lib: api: allow to return prebuilt responses ......................................................................
lib: api: allow to return prebuilt responses We want to switch to a saner approach on which responses are built on the API layer - no longer on the application layer. So, application layer can just raise a proper Exception, and the API layer will catch and create the appropriate error response. But we have a huge pile of code to translate, so we need a gradual approach. This patch extends common.api to passthrough a prebuilt response, so we can migrate our application code incrementally. Change-Id: I4a1c6ab93271e2c5619483446403068ddd95ecb4 Signed-off-by: Francesco Romani <from...@redhat.com> Reviewed-on: https://gerrit.ovirt.org/61474 Reviewed-by: Piotr Kliczewski <piotr.kliczew...@gmail.com> Reviewed-by: Nir Soffer <nsof...@redhat.com> Continuous-Integration: Jenkins CI --- M lib/vdsm/common/api.py M tests/api_test.py 2 files changed, 13 insertions(+), 3 deletions(-) Approvals: Piotr Kliczewski: Looks good to me, approved Nir Soffer: Looks good to me, but someone else must approve Jenkins CI: Passed CI tests Francesco Romani: Verified -- To view, visit https://gerrit.ovirt.org/61474 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I4a1c6ab93271e2c5619483446403068ddd95ecb4 Gerrit-PatchSet: 19 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Francesco Romani <from...@redhat.com> Gerrit-Reviewer: Francesco Romani <from...@redhat.com> Gerrit-Reviewer: Irit Goihman <igoih...@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Milan Zamazal <mzama...@redhat.com> Gerrit-Reviewer: Nir Soffer <nsof...@redhat.com> Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczew...@gmail.com> Gerrit-Reviewer: gerrit-hooks <automat...@ovirt.org> _______________________________________________ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org