Improved config function
This commit is contained in:
parent
e9e1635f9c
commit
3051d22d4f
1 changed files with 0 additions and 9 deletions
|
@ -449,15 +449,6 @@ def execute_config_command(commands, module):
|
||||||
clie = get_exception()
|
clie = get_exception()
|
||||||
module.fail_json(msg='Error sending CLI commands',
|
module.fail_json(msg='Error sending CLI commands',
|
||||||
error=str(clie), commands=commands)
|
error=str(clie), commands=commands)
|
||||||
except AttributeError:
|
|
||||||
try:
|
|
||||||
commands.insert(0, 'configure')
|
|
||||||
module.cli.add_commands(commands, output='config')
|
|
||||||
module.cli.run_commands()
|
|
||||||
except ShellError:
|
|
||||||
clie = get_exception()
|
|
||||||
module.fail_json(msg='Error sending CLI commands',
|
|
||||||
error=str(clie), commands=commands)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in a new issue