diff options
-rw-r--r-- | sos/plugins/named.py | 4 | ||||
-rw-r--r-- | sos/plugins/networking.py | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sos/plugins/named.py b/sos/plugins/named.py index 8a347f8e..a3f6b003 100644 --- a/sos/plugins/named.py +++ b/sos/plugins/named.py @@ -13,7 +13,9 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin +from os.path import exists, join, normpath import commands +import pdb class Named(Plugin): """named related information @@ -24,7 +26,7 @@ class Named(Plugin): config_files = named_conf def setup(self): - for cfg in config_files: + for cfg in self.config_files: if exists(cfg): self.add_copy_spec(cfg) self.add_copy_spec(self.get_dns_dir(cfg)) diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py index a7e07a80..90b740ca 100644 --- a/sos/plugins/networking.py +++ b/sos/plugins/networking.py @@ -116,7 +116,7 @@ class Networking(Plugin): self.add_cmd_output("brctl showstp "+br_name) if self.get_option("traceroute"): - self.add_cmd_output("/bin/traceroute -n %s" % trace_host) + self.add_cmd_output("/bin/traceroute -n %s" % self.trace_host) return @@ -148,5 +148,5 @@ class UbuntuNetworking(Networking, UbuntuPlugin): self.add_cmd_output("/usr/sbin/ufw status") self.add_cmd_output("/usr/sbin/ufw app list") if self.get_option("traceroute"): - self.add_cmd_output("/usr/sbin/traceroute -n %s" % trace_host) + self.add_cmd_output("/usr/sbin/traceroute -n %s" % self.trace_host) |