fix issues when state is not supplied

This commit is contained in:
Brian Coca 2016-06-07 10:29:24 -04:00
parent 721da46842
commit f76befdb9a

View file

@ -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)