Fixing nxos_aaa_server (#5002)
* Fixing command output formatting * Fixing cmds
This commit is contained in:
parent
7f861fb9ce
commit
43632951fe
1 changed files with 4 additions and 2 deletions
|
@ -349,7 +349,7 @@ def execute_show(cmds, module, command_type=None):
|
||||||
module.cli.add_commands(cmds, output=command_type)
|
module.cli.add_commands(cmds, output=command_type)
|
||||||
response = module.cli.run_commands()
|
response = module.cli.run_commands()
|
||||||
else:
|
else:
|
||||||
module.cli.add_commands(cmds)
|
module.cli.add_commands(cmds, raw=True)
|
||||||
response = module.cli.run_commands()
|
response = module.cli.run_commands()
|
||||||
except ShellError:
|
except ShellError:
|
||||||
clie = get_exception()
|
clie = get_exception()
|
||||||
|
@ -543,7 +543,7 @@ def main():
|
||||||
command = default_aaa_server(existing, proposed, server_type)
|
command = default_aaa_server(existing, proposed, server_type)
|
||||||
if command:
|
if command:
|
||||||
commands.append(command)
|
commands.append(command)
|
||||||
|
|
||||||
cmds = flatten_list(commands)
|
cmds = flatten_list(commands)
|
||||||
if cmds:
|
if cmds:
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
|
@ -552,6 +552,8 @@ def main():
|
||||||
changed = True
|
changed = True
|
||||||
execute_config_command(cmds, module)
|
execute_config_command(cmds, module)
|
||||||
end_state = get_aaa_server_info(server_type, module)
|
end_state = get_aaa_server_info(server_type, module)
|
||||||
|
if 'configure' in cmds:
|
||||||
|
cmds.pop(0)
|
||||||
|
|
||||||
results = {}
|
results = {}
|
||||||
results['proposed'] = proposed
|
results['proposed'] = proposed
|
||||||
|
|
Loading…
Reference in a new issue