Fixing bug, added missing param (#3737)
This commit is contained in:
parent
13d7a61160
commit
1977b42956
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ def execute_config_command(commands, module):
|
|||
error=str(clie), commands=commands)
|
||||
|
||||
|
||||
def get_cli_body_ssh(command, response):
|
||||
def get_cli_body_ssh(command, response, module):
|
||||
"""Get response for when transport=cli. This is kind of a hack and mainly
|
||||
needed because these modules were originally written for NX-API. And
|
||||
not every command supports "| json" when using cli/ssh. As such, we assume
|
||||
|
@ -131,7 +131,7 @@ def execute_show_command(command, module, command_type='cli_show'):
|
|||
command += ' | json'
|
||||
cmds = [command]
|
||||
response = execute_show(cmds, module)
|
||||
body = get_cli_body_ssh(command, response)
|
||||
body = get_cli_body_ssh(command, response, module)
|
||||
elif module.params['transport'] == 'nxapi':
|
||||
cmds = [command]
|
||||
body = execute_show(cmds, module, command_type=command_type)
|
||||
|
|
Loading…
Reference in a new issue