From 09d63501b4d1e15342e908e02b04619661a3b602 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 9 Mar 2017 14:30:30 -0500 Subject: [PATCH] Allow for passing runner args via the `arg` kwarg --- pepper/libpepper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pepper/libpepper.py b/pepper/libpepper.py index 31b2bd8..5a30043 100644 --- a/pepper/libpepper.py +++ b/pepper/libpepper.py @@ -342,7 +342,7 @@ def lookup_jid(self, jid): return self.runner('jobs.lookup_jid', jid='{0}'.format(jid)) - def runner(self, fun, **kwargs): + def runner(self, fun, arg=None, **kwargs): ''' Run a single command using the ``runner`` client @@ -353,6 +353,8 @@ def runner(self, fun, **kwargs): 'client': 'runner', 'fun': fun, } + if arg: + low['arg'] = arg low.update(kwargs)