1
0
Fork 0
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:
René Moser 2017-02-20 15:34:52 +01:00 committed by Brian Coca
parent a80251ff02
commit 576ff0728d

View file

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