From 576ff0728d6883e6faff74d8d1390b7ff3aac8c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Mon, 20 Feb 2017 15:34:52 +0100 Subject: [PATCH] service: deprecate state=running (#21499) * service: deprecate state=running * deprecated with version 2.7 --- lib/ansible/plugins/action/service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/plugins/action/service.py b/lib/ansible/plugins/action/service.py index e6e86e21c8..dd521e1b67 100644 --- a/lib/ansible/plugins/action/service.py +++ b/lib/ansible/plugins/action/service.py @@ -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: