diff options
-rw-r--r-- | sos/plugins/networking.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py index 90e1b58b..9724a4f6 100644 --- a/sos/plugins/networking.py +++ b/sos/plugins/networking.py @@ -111,12 +111,11 @@ class Networking(Plugin): self.add_cmd_output("ethtool -c "+eth) self.add_cmd_output("ethtool -g "+eth) - if os.path.exists("brctl"): - brctl_file=self.add_cmd_output("brctl show") - brctl_out=self.call_ext_prog("brctl show") - if brctl_out: - for br_name in self.get_bridge_name(brctl_out): - self.add_cmd_output("brctl showstp "+br_name) + brctl_file=self.add_cmd_output("brctl show") + brctl_out=self.call_ext_prog("brctl show") + if brctl_out: + for br_name in self.get_bridge_name(brctl_out): + self.add_cmd_output("brctl showstp "+br_name) if self.get_option("traceroute"): self.add_cmd_output("/bin/traceroute -n %s" % self.trace_host) |