From 2d14cdc5ac40e30359aca303a3e0299dfc3e9752 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Wed, 15 Feb 2017 12:12:59 -0500 Subject: [PATCH] fixes broken run_commands() method (#21478) --- lib/ansible/module_utils/nxos.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/nxos.py b/lib/ansible/module_utils/nxos.py index fa24e0b4118..1364599dd83 100644 --- a/lib/ansible/module_utils/nxos.py +++ b/lib/ansible/module_utils/nxos.py @@ -338,14 +338,15 @@ def to_command(module, commands): elif is_text(item['command']): item['output'] = 'text' + return commands + def get_config(module, flags=[]): conn = get_connection(module) return conn.get_config(flags) def run_commands(module, commands, check_rc=True): conn = get_connection(module) - to_command(module, commands) - return conn.run_commands(commands) + return conn.run_commands(to_command(module, commands)) def load_config(module, config): conn = get_connection(module)