1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Allow service 'enable' parameter be 'enabled', which is what I'd personally try to use.

This commit is contained in:
Michael DeHaan 2012-05-09 23:13:13 -04:00
parent 089c75016f
commit eb41bfd3c8

View file

@ -117,7 +117,7 @@ if name is None:
state = params.get('state', None)
list_items = params.get('list', None)
enable = params.get('enable', None)
enable = params.get('enabled', params.get('enable', None))
# running and started are the same
if state and state.lower() not in [ 'running', 'started', 'stopped', 'restarted' ]: