diff --git a/pepper/libpepper.py b/pepper/libpepper.py index 7b4e606..120f170 100644 --- a/pepper/libpepper.py +++ b/pepper/libpepper.py @@ -298,7 +298,7 @@ def low(self, lowstate, path='/'): return self.req(path, lowstate) def local(self, tgt, fun, arg=None, kwarg=None, expr_form='glob', - timeout=None, ret=None): + timeout=None, ret=None, full_return=False): ''' Run a single command using the ``local`` client @@ -325,10 +325,13 @@ def local(self, tgt, fun, arg=None, kwarg=None, expr_form='glob', if ret: low['ret'] = ret + if full_return: + low['full_return'] = full_return + return self.low([low]) def local_async(self, tgt, fun, arg=None, kwarg=None, expr_form='glob', - timeout=None, ret=None): + timeout=None, ret=None, full_return=False): ''' Run a single command using the ``local_async`` client @@ -355,10 +358,13 @@ def local_async(self, tgt, fun, arg=None, kwarg=None, expr_form='glob', if ret: low['ret'] = ret + if full_return: + low['full_return'] = full_return + return self.low([low]) def local_batch(self, tgt, fun, arg=None, kwarg=None, expr_form='glob', - batch='50%', ret=None): + batch='50%', ret=None, full_return=False): ''' Run a single command using the ``local_batch`` client @@ -385,16 +391,19 @@ def local_batch(self, tgt, fun, arg=None, kwarg=None, expr_form='glob', if ret: low['ret'] = ret + if full_return: + low['full_return'] = full_return + return self.low([low]) - def lookup_jid(self, jid): + def lookup_jid(self, jid, full_return=False): ''' Get job results Wraps :meth:`runner`. ''' - return self.runner('jobs.lookup_jid', jid='{0}'.format(jid)) + return self.runner('jobs.lookup_jid', jid='{0}'.format(jid), full_return=full_return) def runner(self, fun, arg=None, **kwargs): '''