From cb9919b4a882ef9b681cf009ab5943bbf8c33a88 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Fri, 5 Dec 2014 17:35:02 -0800 Subject: [PATCH] client: return object names instead of boto resultsets Signed-off-by: Josh Durgin --- radosgw_agent/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.47.3