failed to execute zun list command with limit parameter

AttributeError: 'dict' object has no attribute 'uuid'

Change-Id: If41482e16acbb170f70254a1eb9299778ed14619
Closes-Bug: #1679982
This commit is contained in:
Xianghui Zeng 2017-04-05 16:54:22 +08:00
parent 9289330373
commit 8389db2b9c

View File

@ -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']