summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGGabriele <gabrielegerbino@gmail.com>2016-09-06 12:42:14 +0200
committerGGabriele <gabrielegerbino@gmail.com>2016-09-06 12:42:14 +0200
commitd1d69e8e38b275107bd3669c5c7a89c58d5b7c87 (patch)
tree1da0014f13bdd2ccfe48217029fe7573d15a6a8a
parentdd4b6a8585a6e3e9281048560cd5059e13b825f1 (diff)
downloadansible-modules-core-d1d69e8e38b275107bd3669c5c7a89c58d5b7c87.tar.gz
Improved config function
-rw-r--r--network/nxos/nxos_vpc_interface.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/network/nxos/nxos_vpc_interface.py b/network/nxos/nxos_vpc_interface.py
index 02130e93..ed81ffe3 100644
--- a/network/nxos/nxos_vpc_interface.py
+++ b/network/nxos/nxos_vpc_interface.py
@@ -257,15 +257,6 @@ def execute_config_command(commands, module):
clie = get_exception()
module.fail_json(msg='Error sending CLI commands',
error=str(clie), commands=commands)
- except AttributeError:
- try:
- commands.insert(0, 'configure')
- module.cli.add_commands(commands, output='config')
- 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