From: Josh Durgin Date: Sat, 6 Dec 2014 01:35:02 +0000 (-0800) Subject: client: return object names instead of boto resultsets X-Git-Tag: v1.2~5^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13%2Fhead;p=radosgw-agent.git client: return object names instead of boto resultsets Signed-off-by: Josh Durgin --- diff --git a/radosgw_agent/client.py b/radosgw_agent/client.py index 59078bd..7f17600 100644 --- a/radosgw_agent/client.py +++ b/radosgw_agent/client.py @@ -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):