From f76befdb9a42a5188b4c024d2284484a89f3663c Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 7 Jun 2016 10:29:24 -0400 Subject: [PATCH] fix issues when state is not supplied --- lib/ansible/plugins/action/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/service.py b/lib/ansible/plugins/action/service.py index f3d975cb81a..65cbe8b0e03 100644 --- a/lib/ansible/plugins/action/service.py +++ b/lib/ansible/plugins/action/service.py @@ -56,7 +56,7 @@ class ActionModule(ActionBase): del new_module_args['use'] # for backwards compatibility - if new_module_args['state'] == 'running': + if 'state' in new_module_args and new_module_args['state'] == 'running': new_module_args['state'] = 'started' self._display.vvvv("Running %s" % module)