From 3cd878d10b6f672976bc58b4a0448c9280515313 Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Fri, 15 Sep 2017 12:22:34 +0200 Subject: [PATCH] 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. --- library/ipajoin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ipajoin.py b/library/ipajoin.py index 82985be7..9c732044 100644 --- a/library/ipajoin.py +++ b/library/ipajoin.py @@ -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, ) -- GitLab