1
0
forked from rpms/sos
sos/sos-bz751273-fix-brctl-showstp.patch

13 lines
644 B
Diff
Raw Normal View History

diff -up sos-2.2/sos/plugins/networking.py.orig sos-2.2/sos/plugins/networking.py
--- sos-2.2/sos/plugins/networking.py.orig 2012-03-06 11:20:00.128319602 +0000
+++ sos-2.2/sos/plugins/networking.py 2012-03-06 11:20:10.820319845 +0000
@@ -28,7 +28,7 @@ class networking(sos.plugintools.PluginB
out=[]
fp = open(brctlFile, 'r')
for line in fp.readlines():
- if line.startswith("bridge name") or line.isspace():
+ if line.startswith("bridge name") or line.isspace() or line[:1].isspace():
continue
brName, brRest = line.split(None, 1)
out.append(brName)