mirror of
https://github.com/ansible/awx.git
synced 2026-05-21 15:57:52 -02:30
Add support for credential_type in tower_credential module (#3820)
* Add support for credential_type * Finish up credential_type parameter with tests * make inputs mutually exclusive with other params * Test credential type with dict input
This commit is contained in:
committed by
Ryan Petrello
parent
ab6322a8f7
commit
70269d9a0d
@@ -62,6 +62,9 @@ def run_module():
|
||||
# We should consider supporting that in the future
|
||||
resource_module = importlib.import_module('plugins.modules.{}'.format(module_name))
|
||||
|
||||
if not isinstance(module_params, dict):
|
||||
raise RuntimeError('Module params must be dict, got {}'.format(type(module_params)))
|
||||
|
||||
# Ansible params can be passed as an invocation argument or over stdin
|
||||
# this short circuits within the AnsibleModule interface
|
||||
def mock_load_params(self):
|
||||
|
||||
Reference in New Issue
Block a user