mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
service: deprecate state=running (#21499)
* service: deprecate state=running * deprecated with version 2.7
This commit is contained in:
parent
a80251ff02
commit
576ff0728d
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ class ActionModule(ActionBase):
|
|||
|
||||
# for backwards compatibility
|
||||
if 'state' in new_module_args and new_module_args['state'] == 'running':
|
||||
self._display.deprecated(msg="state=running is deprecated. Please use state=started", version="2.7")
|
||||
new_module_args['state'] = 'started'
|
||||
|
||||
if module in self.UNUSED_PARAMS:
|
||||
|
|
Loading…
Reference in a new issue