mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 20:04:45 +00:00
library/ipajoin.py: Fix required_one_of, add mutually_exclusive
The one_of check was using a tuple instead of a list, the check for principal or keytab has been removed, a new mutually exclusive check for password xor keytab has been added.
This commit is contained in:
@@ -201,8 +201,8 @@ def main():
|
|||||||
kinit_attempts=dict(required=False, type='int'),
|
kinit_attempts=dict(required=False, type='int'),
|
||||||
debug=dict(required=False, type='bool'),
|
debug=dict(required=False, type='bool'),
|
||||||
),
|
),
|
||||||
required_one_of = (['principal', 'keytab'],
|
mutually_exclusive = [['password','keytab']],
|
||||||
['password', 'keytab']),
|
required_one_of = [['password', 'keytab']],
|
||||||
supports_check_mode = True,
|
supports_check_mode = True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user