service now passes 'started' instead of 'running'

other modules don't have to implement this directly
also updated docs to prefer 'started'.
fixes #16145
This commit is contained in:
Brian Coca 2016-06-06 22:28:20 -04:00
parent 1b3d6df985
commit 6f36909074
4 changed files with 8 additions and 4 deletions

View file

@ -55,6 +55,10 @@ class ActionModule(ActionBase):
if 'use' in new_module_args:
del new_module_args['use']
# for backwards compatibility
if new_module_args['state'] == 'running':
new_module_args['state'] = 'started'
self._display.vvvv("Running %s" % module)
result.update(self._execute_module(module_name=module, module_args=new_module_args, task_vars=task_vars))
else: