switched to use built in function for validation

reviewable/pr18780/r1
Brian Coca 8 years ago
parent 6ba5dc3188
commit 067167a9b3

@ -1463,9 +1463,8 @@ def main():
arguments = dict(aliases=['args'], default=''),
),
supports_check_mode=True
required_one_of=[['state', 'enabled']],
)
if module.params['state'] is None and module.params['enabled'] is None:
module.fail_json(msg="Neither 'state' nor 'enabled' set")
service = Service(module)

Loading…
Cancel
Save