From 8389db2b9ce4890169609f54697e16b9c1ccfe56 Mon Sep 17 00:00:00 2001 From: Xianghui Zeng Date: Wed, 5 Apr 2017 16:54:22 +0800 Subject: [PATCH] failed to execute zun list command with limit parameter AttributeError: 'dict' object has no attribute 'uuid' Change-Id: If41482e16acbb170f70254a1eb9299778ed14619 Closes-Bug: #1679982 --- zun/api/controllers/v1/collection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zun/api/controllers/v1/collection.py b/zun/api/controllers/v1/collection.py index eb0426794..4465cddb9 100644 --- a/zun/api/controllers/v1/collection.py +++ b/zun/api/controllers/v1/collection.py @@ -42,7 +42,7 @@ class Collection(base.APIBase): q_args = ''.join(['%s=%s&' % (key, kwargs[key]) for key in kwargs]) next_args = '?%(args)slimit=%(limit)d&marker=%(marker)s' % { 'args': q_args, 'limit': limit, - 'marker': self.collection[-1].uuid} + 'marker': self.collection[-1]['uuid']} return link.make_link('next', pecan.request.host_url, - resource_url, next_args).href + resource_url, next_args)['href']