Adapt to the changes of zaqarclient.queues.v2.client's queues
The return value of zaqarclient.queues() has been changed from one return value (list_iter) to two return values (list_iter, count). This change will cause an error in zaqar_ui. Closes-Bug: #2117694 Change-Id: I3374b09eecaa4bc9db77b1d9e008421025d99dea Signed-off-by: han <hanch@cisco.com>
This commit is contained in:
@@ -50,7 +50,8 @@ def zaqarclient(request):
|
||||
|
||||
|
||||
def queue_list(request, limit=None, marker=None):
|
||||
return zaqarclient(request).queues(limit=limit, marker=marker)
|
||||
result, count = zaqarclient(request).queues(limit=limit, marker=marker)
|
||||
return result
|
||||
|
||||
|
||||
def queue_create(request, queue_name, metadata):
|
||||
|
Reference in New Issue
Block a user