Commit 85438bf1 by Michael DeHaan

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

parent 480614ee
...@@ -117,7 +117,7 @@ if name is None: ...@@ -117,7 +117,7 @@ if name is None:
state = params.get('state', None) state = params.get('state', None)
list_items = params.get('list', 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 # running and started are the same
if state and state.lower() not in [ 'running', 'started', 'stopped', 'restarted' ]: if state and state.lower() not in [ 'running', 'started', 'stopped', 'restarted' ]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment