1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Michael DeHaan 2012-04-02 20:12:35 -04:00
parent 2a2b5ed73c
commit f92760de6c

View file

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