mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 13:53:23 +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'),
|
||||
debug=dict(required=False, type='bool'),
|
||||
),
|
||||
required_one_of = (['principal', 'keytab'],
|
||||
['password', 'keytab']),
|
||||
mutually_exclusive = [['password','keytab']],
|
||||
required_one_of = [['password', 'keytab']],
|
||||
supports_check_mode = True,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user