aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-01-31 15:43:44 +0000
committerBryn M. Reeves <bmr@redhat.com>2014-01-31 15:43:44 +0000
commit3c52bbd14c881748998c0edfb328c8c0ca92842f (patch)
treebc83ccd13d92a27f105f0eb04b25e85d986f7a02
parentc344b0396b4ef4435860eb6e3954972e028e3491 (diff)
downloadsos-3c52bbd14c881748998c0edfb328c8c0ca92842f.tar.gz
Ensure superclass postproc method is called in ldap plugin
Since the ldap plugins add files and post-processing methods at multiple class levels (Ldap, RedHatLdap etc.) derived classes must explicitly call their parent class's postproc() method to apply all substitutions to collected data. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/ldap.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/plugins/ldap.py b/sos/plugins/ldap.py
index f1032a9c..79d83947 100644
--- a/sos/plugins/ldap.py
+++ b/sos/plugins/ldap.py
@@ -45,6 +45,7 @@ class RedHatLdap(Ldap, RedHatPlugin):
])
def postproc(self):
+ super(RedHatLdap, self).postproc()
self.do_file_sub("/etc/nslcd.conf",
r"(\s*bindpw\s*)\S+", r"\1********")
self.do_file_sub("/etc/pam_ldap.conf",
@@ -77,6 +78,7 @@ class DebianLdap(Ldap, DebianPlugin, UbuntuPlugin):
suggest_filename="access_control_lists")
def postproc(self):
+ super(RedHatLdap, self).postproc()
self.do_cmd_output_sub(
"ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config '(!(objectClass=olcSchemaConfig))'",
r"(olcRootPW\: \s*)\S+", r"\1********")