Skip to content

Commit

Permalink
Merge pull request #101 from sangoma/support_runner_args
Browse files Browse the repository at this point in the history
Allow for passing runner args via the `arg` kwarg
  • Loading branch information
whiteinge authored Mar 9, 2017
2 parents ac39c01 + 09d6350 commit e6b05eb
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 e6b05eb

Please sign in to comment.