From d540be425af8948afdf121b44bd990cdc15c2b3c Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Tue, 4 Feb 2025 12:28:00 +0100
Subject: [PATCH] ipagroup: Fix test for externalmember use in client context

The test has been changed with the management fix for AD objects. The
conditional was lacking brackets and therefore did not properly work.
The brackets have been added.

Related: https://issues.redhat.com/browse/RHEL-70023
---
 plugins/modules/ipagroup.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/modules/ipagroup.py b/plugins/modules/ipagroup.py
index 3405774..efdd5b4 100644
--- a/plugins/modules/ipagroup.py
+++ b/plugins/modules/ipagroup.py
@@ -581,8 +581,8 @@ def main():
                 "https://pagure.io/freeipa/issue/9349")
 
     if (
-        externalmember is not None
-        or idoverrideuser is not None
+        (externalmember is not None
+         or idoverrideuser is not None)
         and context == "client"
     ):
         ansible_module.fail_json(
-- 
GitLab