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

reviewable/pr18780/r1
Michael DeHaan 13 years ago
parent 3b6717245c
commit e2e4c2d7ce

@ -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' ]:

Loading…
Cancel
Save