From f9f894ef95cd290875d4621d2933a2b9ee2938fb Mon Sep 17 00:00:00 2001 From: jedelman8 Date: Tue, 19 Apr 2016 05:34:59 -0700 Subject: [PATCH] fix conditional for py24 --- network/nxos/nxos_vlan.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/network/nxos/nxos_vlan.py b/network/nxos/nxos_vlan.py index 900c5efe659..b6d5a6d53b6 100644 --- a/network/nxos/nxos_vlan.py +++ b/network/nxos/nxos_vlan.py @@ -13,7 +13,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# along with Ansible. If not, see . # DOCUMENTATION = ''' @@ -305,7 +305,10 @@ def get_cli_body_ssh(command, response, module): def execute_show(cmds, module, command_type=None): try: - response = module.execute(cmds, command_type=command_type) if command_type else module.execute(cmds) + if command_type: + response = module.execute(cmds, command_type=command_type) + else: + response = module.execute(cmds) except ShellError, clie: module.fail_json(msg='Error sending {0}'.format(command), error=str(clie))