From 90b101310a847880ae0b4301cfbdb60a7179c840 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Tue, 26 Mar 2019 09:56:49 +0100
Subject: [PATCH] module_utils/ansible_ipa_client: Deactivate __getattr__ in
 installer_obj

The __getattr__ method in installer_obj was used for debugging to make
sure that all needed settings in the installer object have been set.
---
 roles/ipaclient/module_utils/ansible_ipa_client.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/roles/ipaclient/module_utils/ansible_ipa_client.py b/roles/ipaclient/module_utils/ansible_ipa_client.py
index efc7f690..c8870a35 100644
--- a/roles/ipaclient/module_utils/ansible_ipa_client.py
+++ b/roles/ipaclient/module_utils/ansible_ipa_client.py
@@ -45,11 +45,11 @@ class installer_obj(object):
     #            "  <-- Accessing installer.%s (%s)" % (attr, repr(value)))
     #    return value
 
-    def __getattr__(self, attr):
-        #logger.info("  --> ADDING missing installer.%s" % attr)
-        self.logger.warn("  --> ADDING missing installer.%s" % attr)
-        setattr(self, attr, None)
-        return getattr(self, attr)
+    #def __getattr__(self, attr):
+    #    #logger.info("  --> ADDING missing installer.%s" % attr)
+    #    self.logger.warn("  --> ADDING missing installer.%s" % attr)
+    #    setattr(self, attr, None)
+    #    return getattr(self, attr)
 
     #def __setattr__(self, attr, value):
     #    logger.debug("  --> Setting installer.%s to %s" % (attr, repr(value)))
-- 
GitLab