From 6ba17f7d014aa50643a8920ee092424051d78c08 Mon Sep 17 00:00:00 2001 From: "yan.haifeng" Date: Fri, 29 Apr 2016 15:59:56 +0800 Subject: [PATCH] Fix ovs-vsctl executed in worlddump.py failed issue add sudo before ovs-vsctl command. Change-Id: I1a7dd9504da766beb452bd749e325931678de64e Closes-Bug: #1576560 --- tools/worlddump.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/worlddump.py b/tools/worlddump.py index 238a23dab8..e1ef544a55 100755 --- a/tools/worlddump.py +++ b/tools/worlddump.py @@ -88,7 +88,8 @@ def _header(name): def _bridge_list(): - process = subprocess.Popen(['ovs-vsctl', 'list-br'], stdout=subprocess.PIPE) + process = subprocess.Popen(['sudo', 'ovs-vsctl', 'list-br'], + stdout=subprocess.PIPE) stdout, _ = process.communicate() return stdout.split()