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.
This commit is contained in:
Thomas Woerner
2019-03-26 09:56:49 +01:00
parent 314010c043
commit 90b101310a

View File

@@ -45,11 +45,11 @@ class installer_obj(object):
# " <-- Accessing installer.%s (%s)" % (attr, repr(value))) # " <-- Accessing installer.%s (%s)" % (attr, repr(value)))
# return value # return value
def __getattr__(self, attr): #def __getattr__(self, attr):
#logger.info(" --> ADDING missing installer.%s" % attr) # #logger.info(" --> ADDING missing installer.%s" % attr)
self.logger.warn(" --> ADDING missing installer.%s" % attr) # self.logger.warn(" --> ADDING missing installer.%s" % attr)
setattr(self, attr, None) # setattr(self, attr, None)
return getattr(self, attr) # return getattr(self, attr)
#def __setattr__(self, attr, value): #def __setattr__(self, attr, value):
# logger.debug(" --> Setting installer.%s to %s" % (attr, repr(value))) # logger.debug(" --> Setting installer.%s to %s" % (attr, repr(value)))