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

Check mutually_exclusive parameters before applying defaults

This commit is contained in:
James Tanner 2014-02-07 13:42:08 -05:00
parent 70ebb05190
commit b3ab7e7885

View file

@ -196,13 +196,16 @@ class AnsibleModule(object):
self._check_for_check_mode()
self._check_for_no_log()
# check exclusive early
if not bypass_checks:
self._check_mutually_exclusive(mutually_exclusive)
self._set_defaults(pre=True)
if not bypass_checks:
self._check_required_arguments()
self._check_argument_values()
self._check_argument_types()
self._check_mutually_exclusive(mutually_exclusive)
self._check_required_together(required_together)
self._check_required_one_of(required_one_of)