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:
Thomas Woerner
2017-09-15 12:22:34 +02:00
parent fa1eeb042c
commit 3cd878d10b

View File

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