From b1cf3dd3cb64c693a0c98c86545fc8c16711621e Mon Sep 17 00:00:00 2001 From: Eva Balycheva Date: Tue, 23 Feb 2016 22:47:55 +0300 Subject: [PATCH] Fix arguments order in error_response (Websocket) This patch fixes order of arguments passed to error_response constructor in some places on websocket transport. The corresponding tests will be written/fixed in this patch: https://review.openstack.org/#/c/283184 Change-Id: I09e103af9b7549fd4c6eafe6e1bf66b3ac74f85b Closes-Bug: 1548966 --- zaqar/api/v2/endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zaqar/api/v2/endpoints.py b/zaqar/api/v2/endpoints.py index d30418b1..b895a707 100644 --- a/zaqar/api/v2/endpoints.py +++ b/zaqar/api/v2/endpoints.py @@ -70,7 +70,7 @@ class Endpoints(object): LOG.exception(ex) error = 'Queues could not be listed.' headers = {'status': 503} - return api_utils.error_response(req, ex, error, headers) + return api_utils.error_response(req, ex, headers, error) # Buffer list of queues queues = list(next(results)) @@ -758,7 +758,7 @@ class Endpoints(object): LOG.exception(ex) error = 'Subscriptions could not be listed.' headers = {'status': 503} - return api_utils.error_response(req, ex, error, headers) + return api_utils.error_response(req, ex, headers, error) # Buffer list of queues subscriptions = list(next(results))