Fixing the arguments accepted by cli function in the junos state module which are passed along to the cli function in junos module, so they align.

This commit is contained in:
Gareth J. Greenaway 2018-12-28 11:33:13 -08:00
parent daa591b1ac
commit d4ac180209
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -202,7 +202,7 @@ def diff(name, d_id):
return ret
def cli(name, format='text', **kwargs):
def cli(name, **kwargs):
'''
Executes the CLI commands and reuturns the text output.
@ -218,10 +218,10 @@ def cli(name, format='text', **kwargs):
* command:
The command that need to be executed on Junos CLI. (default = None)
Optional
* format:
Format in which to get the CLI output. (text or xml, \
default = 'text')
* kwargs: Keyworded arguments which can be provided like-
* format:
Format in which to get the CLI output. (text or xml, \
default = 'text')
* timeout:
Set NETCONF RPC timeout. Can be used for commands which
take a while to execute. (default = 30 seconds)
@ -230,7 +230,7 @@ def cli(name, format='text', **kwargs):
(default = None)
'''
ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''}
ret['changes'] = __salt__['junos.cli'](name, format, **kwargs)
ret['changes'] = __salt__['junos.cli'](name, **kwargs)
return ret