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()