]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
client: don't hide boto return values
authorJosh Durgin <jdurgin@redhat.com>
Mon, 10 Nov 2014 22:14:11 +0000 (14:14 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Mon, 24 Nov 2014 23:46:08 +0000 (15:46 -0800)
The decorator for translating boto exceptions needs to return
explicitly, or it will lose the return value of the original function,
and cause full sync to fail for objects that aren't in the bucket
index log.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
radosgw_agent/client.py

index 9be5681bedce4c3a58c1eb64d1ec542787da7087..94db32afeed36f555cc687d44f654f73e7b73e9a 100644 (file)
@@ -86,7 +86,7 @@ def boto_call(func):
     @functools.wraps(func)
     def translate_exception(*args, **kwargs):
         try:
-            func(*args, **kwargs)
+            return func(*args, **kwargs)
         except boto.exception.S3ResponseError as e:
             raise code_to_exc.get(e.status, HttpError)(e.status, e.body)
     return translate_exception