Skip to content
Snippets Groups Projects
Commit 90b10131 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

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.
parent 314010c0
No related branches found
No related tags found
No related merge requests found
...@@ -45,11 +45,11 @@ class installer_obj(object): ...@@ -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)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment