Skip to content

Commit

Permalink
Allow for passing runner args via the arg kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Goodlet committed Mar 9, 2017
1 parent ac39c01 commit 09d6350
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pepper/libpepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -353,6 +353,8 @@ def runner(self, fun, **kwargs):
'client': 'runner',
'fun': fun,
}
if arg:
low['arg'] = arg

low.update(kwargs)

Expand Down

0 comments on commit 09d6350

Please sign in to comment.