Skip to content

Commit

Permalink
fix issues when state is not supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed Jun 7, 2016
1 parent 721da46 commit f76befd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/action/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run(self, tmp=None, task_vars=None):
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)
Expand Down

0 comments on commit f76befd

Please sign in to comment.