summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorGabriele <gabrielegerbino@gmail.com>2016-09-30 16:24:12 -0400
committerPeter Sprygada <privateip@users.noreply.github.com>2016-09-30 16:24:12 -0400
commit813a14f046920a0cd62ee535600bafb1251a63db (patch)
tree0982e48322395c5fcb019d57d1672c0038e5d521 /network
parent8da99d4e703a027a2a4be0abef491ced3c57fe13 (diff)
downloadansible-modules-core-813a14f046920a0cd62ee535600bafb1251a63db.tar.gz
Fixing nxos_aaa_server (#5002)
* Fixing command output formatting * Fixing cmds
Diffstat (limited to 'network')
-rw-r--r--network/nxos/nxos_aaa_server.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/network/nxos/nxos_aaa_server.py b/network/nxos/nxos_aaa_server.py
index 43cc3425..33988657 100644
--- a/network/nxos/nxos_aaa_server.py
+++ b/network/nxos/nxos_aaa_server.py
@@ -349,7 +349,7 @@ def execute_show(cmds, module, command_type=None):
module.cli.add_commands(cmds, output=command_type)
response = module.cli.run_commands()
else:
- module.cli.add_commands(cmds)
+ module.cli.add_commands(cmds, raw=True)
response = module.cli.run_commands()
except ShellError:
clie = get_exception()
@@ -543,7 +543,7 @@ def main():
command = default_aaa_server(existing, proposed, server_type)
if command:
commands.append(command)
-
+
cmds = flatten_list(commands)
if cmds:
if module.check_mode:
@@ -552,6 +552,8 @@ def main():
changed = True
execute_config_command(cmds, module)
end_state = get_aaa_server_info(server_type, module)
+ if 'configure' in cmds:
+ cmds.pop(0)
results = {}
results['proposed'] = proposed