From 368db9a60640055a44a1ab655d17423966617e3c Mon Sep 17 00:00:00 2001 From: Edward Hope-Morley Date: Thu, 2 Mar 2017 15:16:01 +0000 Subject: [networking] Support iproute2 ns list output iproute2 now prints an id after namespace names when listing with e.g. ip netns. This breaks the sosreport get_ip_netns() function. Fixes #948 Signed-off-by: Edward Hope-Morley Closes #949. Signed-off-by: Bryn M. Reeves --- sos/plugins/networking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py index 595f29c4..48014d0c 100644 --- a/sos/plugins/networking.py +++ b/sos/plugins/networking.py @@ -76,7 +76,7 @@ class Networking(Plugin): or line.isspace() \ or line[:1].isspace(): return out - out.append(line) + out.append(line.partition(' ')[0]) return out def get_netns_devs(self, namespace): -- cgit