diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2013-04-23 19:50:45 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2013-04-23 19:50:45 +0100 |
commit | 81b9352b65e7b1b4c48adcaa642743b362e86465 (patch) | |
tree | 547addecfdcb68034b0d0ee148713f9245dd85d6 | |
parent | 4b46e044ef5cdfef2169618d852cddb84818d01b (diff) | |
download | sos-81b9352b65e7b1b4c48adcaa642743b362e86465.tar.gz |
Fix scoping bug in named.py
The path "/etc/named.conf" was made into a class variable to avoid
repeating the string through the file. Make sure all uses qualify
the variable appropriately.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/named.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/named.py b/sos/plugins/named.py index a3f6b003..83567ab2 100644 --- a/sos/plugins/named.py +++ b/sos/plugins/named.py @@ -47,7 +47,7 @@ class Named(Plugin): def postproc(self): match = r"(\s*arg \"password )[^\"]*" subst = r"\1******" - self.do_file_sub(named_conf, match, subst) + self.do_file_sub(self.named_conf, match, subst) class RedHatNamed(Named, RedHatPlugin): |