mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
daa591b1ac
commit
d4ac180209
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue