From e957776f60cb2a4389d2ac3e6e16ee5a4923302c Mon Sep 17 00:00:00 2001 From: dlyssenko <88390151+dlyssenko@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:03:29 +0200 Subject: [PATCH] Update eapilib.py: allow pass any EAPI params to jsonrpc --- pyeapi/eapilib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyeapi/eapilib.py b/pyeapi/eapilib.py index bee3494..773431d 100644 --- a/pyeapi/eapilib.py +++ b/pyeapi/eapilib.py @@ -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} )