From 1977b42956ecbde3b12cfb3439dabcf4254d8a5c Mon Sep 17 00:00:00 2001 From: Gabriele Date: Fri, 27 May 2016 00:56:03 -0400 Subject: [PATCH] Fixing bug, added missing param (#3737) --- lib/ansible/modules/network/nxos/nxos_feature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/nxos/nxos_feature.py b/lib/ansible/modules/network/nxos/nxos_feature.py index 9f11a51a8de..5998cd33606 100644 --- a/lib/ansible/modules/network/nxos/nxos_feature.py +++ b/lib/ansible/modules/network/nxos/nxos_feature.py @@ -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)