From c177bc4f7259dc2566f35acf4f76f9b4069e26f2 Mon Sep 17 00:00:00 2001 From: GGabriele Date: Sun, 4 Sep 2016 18:59:56 +0200 Subject: [PATCH] Fixed config function --- network/nxos/nxos_vpc_interface.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/network/nxos/nxos_vpc_interface.py b/network/nxos/nxos_vpc_interface.py index 985516d88df..9f0b2b8f07f 100644 --- a/network/nxos/nxos_vpc_interface.py +++ b/network/nxos/nxos_vpc_interface.py @@ -252,7 +252,7 @@ def load_config(module, candidate): def execute_config_command(commands, module): try: - module.configure(commands) + response = module.configure(commands) except ShellError: clie = get_exception() module.fail_json(msg='Error sending CLI commands', @@ -261,11 +261,12 @@ def execute_config_command(commands, module): try: commands.insert(0, 'configure') module.cli.add_commands(commands, output='config') - module.cli.run_commands() + response = module.cli.run_commands() except ShellError: clie = get_exception() module.fail_json(msg='Error sending CLI commands', error=str(clie), commands=commands) + return response def get_cli_body_ssh(command, response, module):