Change image for package in the code taken from Glance

Change-Id: I68d4f9b4d828f98c31674dab5504477a4f3aefa0
This commit is contained in:
Valerii Kovalchuk 2016-07-25 11:35:47 +03:00
parent 5ecacc7f88
commit 544901db80
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ class PackageManager(base.Manager):
def paginate(_url):
# code from Glance
resp, body = self.api.json_request(_url, 'GET')
for image in body['packages']:
yield image
for package in body['packages']:
yield package
try:
m_kwargs = kwargs.copy()
m_kwargs['marker'] = body['next_marker']