From f054d0842217963d4467cc3e12fefd88ab11de63 Mon Sep 17 00:00:00 2001 From: rahushen Date: Wed, 13 Sep 2017 11:00:13 -0400 Subject: [PATCH] Fixes #28493 (#29061) (cherry picked from commit 169fbc4c941d3e6269e85cd05c4d59bc5361711d) --- lib/ansible/modules/network/nxos/nxos_ntp_options.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/network/nxos/nxos_ntp_options.py b/lib/ansible/modules/network/nxos/nxos_ntp_options.py index d4e2004e92f..9befe3ccd8b 100644 --- a/lib/ansible/modules/network/nxos/nxos_ntp_options.py +++ b/lib/ansible/modules/network/nxos/nxos_ntp_options.py @@ -105,7 +105,7 @@ def get_current(module): master = False stratum = None - logging = 'Enabled' in output[1] + logging = 'enabled' in output[1].lower() return {'master': master, 'stratum': stratum, 'logging': logging} @@ -113,17 +113,14 @@ def get_current(module): def main(): argument_spec = dict( master=dict(required=False, type='bool'), - stratum=dict(type='str'), + stratum=dict(required=False, type='str', default='8'), logging=dict(required=False, type='bool'), state=dict(choices=['absent', 'present'], default='present'), ) argument_spec.update(nxos_argument_spec) - required_together = [('master', 'stratum')] - module = AnsibleModule(argument_spec=argument_spec, - required_together=required_together, supports_check_mode=True) warnings = list()