From: Alfredo Deza Date: Mon, 19 Aug 2013 20:55:39 +0000 (-0400) Subject: I was not returning the remote function - sigh X-Git-Tag: v1.2.2~4^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e885d84fd1f158de674a3658e11fbd558258f55;p=ceph-deploy.git I was not returning the remote function - sigh Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/util/context.py b/ceph_deploy/util/context.py index 1e23f43..911c739 100644 --- a/ceph_deploy/util/context.py +++ b/ceph_deploy/util/context.py @@ -51,6 +51,7 @@ class remote(object): # leave everything as it was self.client.modules.sys.stdout = self.stdout self.client.modules.sys.stdout = self.stderr + if not self.mangle_exc: return False diff --git a/ceph_deploy/util/decorators.py b/ceph_deploy/util/decorators.py index 9faa978..ab0bb0e 100644 --- a/ceph_deploy/util/decorators.py +++ b/ceph_deploy/util/decorators.py @@ -15,7 +15,7 @@ def remote_compile(client, fn): self.remote_traceback = remote_traceback try: - fn(*args, **kwargs) + return fn(*args, **kwargs) except Exception as err: import traceback remote_trace = traceback.format_exc()