From b282fc508895e27f761a752b437569870fd7da53 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Mon, 9 Jul 2018 13:39:17 +0200
Subject: [PATCH] ipaserver/library/ipaserver_test: adtrust message should be
 warning

Tee message for a domain and realm name mismatch should be a warning and
not a fail in the ipaserver test. It is also a warning in the normal
installer.
---
 roles/ipaserver/library/ipaserver_test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/ipaserver/library/ipaserver_test.py b/roles/ipaserver/library/ipaserver_test.py
index a519e63d..98502ded 100644
--- a/roles/ipaserver/library/ipaserver_test.py
+++ b/roles/ipaserver/library/ipaserver_test.py
@@ -578,8 +578,8 @@ def main():
         # to establish trust with Active Directory. Fail.
 
         if options.domain_name.upper() != options.realm_name:
-            ansible_module.fail_json(
-                msg="Realm name does not match the domain name: "
+            ansible_module.warn(
+                "Realm name does not match the domain name: "
                 "You will not be able to establish trusts with Active "
                 "Directory.")
 
-- 
GitLab