mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix issues when state is not supplied
This commit is contained in:
parent
721da46842
commit
f76befdb9a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue