mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
If missing state or name or list parameter on yum module, raise error explaining what is up.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user