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