Merge "Fix arguments order in error_response (Websocket)"

This commit is contained in:
Jenkins 2016-02-25 22:43:47 +00:00 committed by Gerrit Code Review
commit 1e78e42758

View File

@ -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))