Skip to content

Commit 2a6926b

Browse files
adrianliawshin-
authored andcommitted
Use collection's get method inside ImageCollection's list method
Signed-off-by: Adrian Liaw <[email protected]>
1 parent b4802ea commit 2a6926b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/models/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def list(self, name=None, all=False, filters=None):
224224
If the server returns an error.
225225
"""
226226
resp = self.client.api.images(name=name, all=all, filters=filters)
227-
return [self.prepare_model(r) for r in resp]
227+
return [self.get(r["Id"]) for r in resp]
228228

229229
def load(self, data):
230230
"""

0 commit comments

Comments
 (0)