Skip to content

Commit

Permalink
Update eapilib.py: allow pass any EAPI params to jsonrpc
Browse files Browse the repository at this point in the history
  • Loading branch information
dlyssenko authored Sep 24, 2024
1 parent e9772db commit e957776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyeapi/eapilib.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ def request(self, commands, encoding=None, reqid=None, **kwargs):
'format': kwargs.pop('format', encoding) }
params.update( kwargs )
params.update({ 'cmds': commands })
params = { k:v for k,v in params.items() if k in
('version', 'cmds', 'autoComplete', 'expandAliases', 'timestamps' ) }
params = { k:v for k,v in params.items() if k in ('version',
'format', 'cmds', 'autoComplete', 'expandAliases', 'timestamps') }
return json.dumps( {'jsonrpc': '2.0', 'method': 'runCmds',
'params': params, 'id': str(reqid),
'streaming': streaming} )
Expand Down

0 comments on commit e957776

Please sign in to comment.