]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
client: return object names instead of boto resultsets 13/head
authorJosh Durgin <jdurgin@redhat.com>
Sat, 6 Dec 2014 01:35:02 +0000 (17:35 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Sat, 6 Dec 2014 01:35:02 +0000 (17:35 -0800)
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
radosgw_agent/client.py

index 59078bd80fda3c59f1c356d0a0b427572b05de16..7f176001c58b144bd6ed0f7e45b0702bb3ac7f69 100644 (file)
@@ -205,7 +205,8 @@ def get_bucket_list(connection):
 def list_objects_in_bucket(connection, bucket_name):
     # use the boto library to do this
     bucket = connection.get_bucket(bucket_name)
-    return bucket.list()
+    for key in bucket.list():
+        yield key.name
 
 @boto_call
 def delete_object(connection, bucket_name, object_name):