From 67d416576f7d9a2b67032ed6fdd129fc5a18c24d Mon Sep 17 00:00:00 2001 From: GGabriele Date: Tue, 19 Apr 2016 14:48:53 +0200 Subject: [PATCH] fix conditional for py24 --- network/nxos/nxos_feature.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/network/nxos/nxos_feature.py b/network/nxos/nxos_feature.py index f213b43a6b7..b535dc77ec3 100644 --- a/network/nxos/nxos_feature.py +++ b/network/nxos/nxos_feature.py @@ -114,8 +114,10 @@ def get_cli_body_ssh(command, response): 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(cmds), error=str(clie))