mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 01:33:09 +00:00
fix issues when state is not supplied
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user