Merge "FIX TypeError for list queue command."

This commit is contained in:
Jenkins 2015-10-13 17:33:06 +00:00 committed by Gerrit Code Review
commit c3fefb82dd

View File

@ -155,6 +155,7 @@ class QueueController(storage.Queue):
cursor = self._pool_catalog._pools_ctrl.list(limit=0)
pools_list = list(next(cursor))
anypool = pools_list and pools_list[0]
if anypool:
yield next(self._pool_catalog.get_driver(anypool['name'])
.queue_controller.list(
project=project,