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:
Alan Rominger
2019-10-22 14:39:27 -04:00
committed by Ryan Petrello
parent ab6322a8f7
commit 70269d9a0d
5 changed files with 223 additions and 17 deletions

View File

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