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} )