From 77b043dcf3630e6339570d1cd7c02e32282e10a0 Mon Sep 17 00:00:00 2001 From: GGabriele Date: Thu, 15 Sep 2016 11:02:33 +0200 Subject: [PATCH] Fixing conditional format --- lib/ansible/modules/network/nxos/nxos_ntp_auth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/nxos/nxos_ntp_auth.py b/lib/ansible/modules/network/nxos/nxos_ntp_auth.py index 2cd6b7ded3b..fc2d1c52a3f 100644 --- a/lib/ansible/modules/network/nxos/nxos_ntp_auth.py +++ b/lib/ansible/modules/network/nxos/nxos_ntp_auth.py @@ -446,7 +446,10 @@ def get_ntp_auth_info(key_id, module): def auth_type_to_num(auth_type): - return '7' if auth_type == 'encrypt' else '0' + if auth_type == 'encrypt' : + return '7' + else: + return '0' def set_ntp_auth_key(key_id, md5string, auth_type, trusted_key, authentication):