瀏覽代碼

Listing S3 bucket objects returns Object instead of ObjectSummary.

Fixes #126.
Enis Afgan 7 年之前
父節點
當前提交
eb997c0b37
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      cloudbridge/cloud/providers/aws/resources.py

+ 1 - 3
cloudbridge/cloud/providers/aws/resources.py

@@ -830,9 +830,7 @@ class AWSBucketContainer(BaseBucketContainer):
         else:
             # pylint:disable=protected-access
             boto_objs = self.bucket._bucket.objects.all()
-        objects = [AWSBucketObject(self._provider, obj)
-                   for obj in boto_objs]
-
+        objects = [self.get(obj.key) for obj in boto_objs]
         return ClientPagedResultList(self._provider, objects,
                                      limit=limit, marker=marker)