parent
2f06d572ba
commit
169fbc4c94
1 changed files with 2 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue