Skip to content
Snippets Groups Projects
Commit 3cd878d1 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

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.
parent fa1eeb04
No related branches found
No related tags found
No related merge requests found
......@@ -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,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment