diff options
author | Louis Bouchard <louis.bouchard@canonical.com> | 2013-04-22 16:29:36 +0200 |
---|---|---|
committer | Louis Bouchard <louis.bouchard@canonical.com> | 2013-04-22 16:29:36 +0200 |
commit | d045d85075b5d947b5d2cf32878162cc03e02e05 (patch) | |
tree | 24b9354142909a4036ad33d526249e4c92ce02d2 | |
parent | fafe3fc1b29b88a6cb2647a7accd7c5caf0308e2 (diff) | |
download | sos-d045d85075b5d947b5d2cf32878162cc03e02e05.tar.gz |
fix small misses following refactoring
-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) |