(cherry picked from commit 169fbc4c94)
This commit is contained in:
rahushen 2017-09-13 11:00:13 -04:00 committed by Toshio Kuratomi
parent 8d305461fb
commit f054d08422

View file

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