put type checking before looking against choices array to always get type comparrison correctly

pull/11497/head
Brian Coca 10 years ago
parent f42b6237d9
commit 2c9d1257ba

@ -392,8 +392,8 @@ class AnsibleModule(object):
} }
if not bypass_checks: if not bypass_checks:
self._check_required_arguments() self._check_required_arguments()
self._check_argument_values()
self._check_argument_types() self._check_argument_types()
self._check_argument_values()
self._check_required_together(required_together) self._check_required_together(required_together)
self._check_required_one_of(required_one_of) self._check_required_one_of(required_one_of)
self._check_required_if(required_if) self._check_required_if(required_if)

Loading…
Cancel
Save