From f92760de6c14ffb974224a79441195c18fd7d456 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. --- library/yum | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/yum b/library/yum index 4e46365fce..da0d5ab492 100755 --- a/library/yum +++ b/library/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