From 3c952cdb1662e27f007ba5c40f231feabbf67b3e Mon Sep 17 00:00:00 2001
From: Alessandro De Blasis <alex@deblasis.net>
Date: Fri, 1 Feb 2019 13:15:44 +0000
Subject: [PATCH] Fixes #51 upstream

---
 roles/ipaclient/library/ipadiscovery.py   | 4 ++--
 roles/ipaserver/library/ipaserver_test.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/roles/ipaclient/library/ipadiscovery.py b/roles/ipaclient/library/ipadiscovery.py
index 396705cf..418c7528 100644
--- a/roles/ipaclient/library/ipadiscovery.py
+++ b/roles/ipaclient/library/ipadiscovery.py
@@ -274,11 +274,11 @@ def main():
 
     if options.ntp_servers and options.no_ntp:
         module.fail_json(
-            "--ntp-server cannot be used together with --no-ntp")
+            msg="--ntp-server cannot be used together with --no-ntp")
 
     if options.ntp_pool and options.no_ntp:
         module.fail_json(
-            "--ntp-pool cannot be used together with --no-ntp")
+            msg="--ntp-pool cannot be used together with --no-ntp")
 
     #if options.no_nisdomain and options.nisdomain:
     #    module.fail_json(
diff --git a/roles/ipaserver/library/ipaserver_test.py b/roles/ipaserver/library/ipaserver_test.py
index 7d386847..2ca62058 100644
--- a/roles/ipaserver/library/ipaserver_test.py
+++ b/roles/ipaserver/library/ipaserver_test.py
@@ -261,7 +261,7 @@ def main():
         try:
             check_zone_overlap(options.domain_name, False)
         except ValueError as e:
-            ansible_module.fail_json(str(e))
+            ansible_module.fail_json(msg=str(e))
 
     # dm_password
     with redirect_stdout(ansible_log):
-- 
GitLab