Use collection's get method inside ImageCollection's list method

Signed-off-by: Adrian Liaw <adrianliaw2000@gmail.com>
This commit is contained in:
adrianliaw 2017-05-06 19:29:39 +08:00 committed by Joffrey F
parent b4802ea126
commit 2a6926b5ab
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ class ImageCollection(Collection):
If the server returns an error.
"""
resp = self.client.api.images(name=name, all=all, filters=filters)
return [self.prepare_model(r) for r in resp]
return [self.get(r["Id"]) for r in resp]
def load(self, data):
"""