From 1cfc35de6b90ee25b7cf063a6f4622539948db7d Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 2 Apr 2012 20:12:35 -0400 Subject: [PATCH] If missing state or name or list parameter on yum module, raise error explaining what is up. --- yum | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yum b/yum index 4e46365fcef..da0d5ab4922 100755 --- a/yum +++ b/yum @@ -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