mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 12:40:06 -03: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:
@@ -98,8 +98,8 @@ class TowerModule(AnsibleModule):
|
||||
)
|
||||
args.update(argument_spec)
|
||||
|
||||
mutually_exclusive = kwargs.get('mutually_exclusive', [])
|
||||
kwargs['mutually_exclusive'] = mutually_exclusive.extend((
|
||||
kwargs.setdefault('mutually_exclusive', [])
|
||||
kwargs['mutually_exclusive'].extend((
|
||||
('tower_config_file', 'tower_host'),
|
||||
('tower_config_file', 'tower_username'),
|
||||
('tower_config_file', 'tower_password'),
|
||||
|
||||
Reference in New Issue
Block a user