Skip to content

Commit e6b05eb

Browse files
authored
Merge pull request #101 from sangoma/support_runner_args
Allow for passing runner args via the `arg` kwarg
2 parents ac39c01 + 09d6350 commit e6b05eb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pepper/libpepper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def lookup_jid(self, jid):
342342

343343
return self.runner('jobs.lookup_jid', jid='{0}'.format(jid))
344344

345-
def runner(self, fun, **kwargs):
345+
def runner(self, fun, arg=None, **kwargs):
346346
'''
347347
Run a single command using the ``runner`` client
348348
@@ -353,6 +353,8 @@ def runner(self, fun, **kwargs):
353353
'client': 'runner',
354354
'fun': fun,
355355
}
356+
if arg:
357+
low['arg'] = arg
356358

357359
low.update(kwargs)
358360

0 commit comments

Comments
 (0)