Commit f92760de by Michael DeHaan

If missing state or name or list parameter on yum module, raise error explaining what is up.

parent 2a2b5ed7
......@@ -329,6 +329,10 @@ def main():
except Exception, e:
return 1, str(e)
else:
print json.dumps(dict(failed=True, msg='invalid module parameters'))
sys.exit(1)
print json.dumps(results)
return 0, None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment