Browse code

Fix ovs-vsctl executed in worlddump.py failed issue

add sudo before ovs-vsctl command.

Change-Id: I1a7dd9504da766beb452bd749e325931678de64e
Closes-Bug: #1576560

yan.haifeng authored on 2016/04/29 16:59:56
Showing 1 changed files
... ...
@@ -88,7 +88,8 @@ def _header(name):
88 88
 
89 89
 
90 90
 def _bridge_list():
91
-    process = subprocess.Popen(['ovs-vsctl', 'list-br'], stdout=subprocess.PIPE)
91
+    process = subprocess.Popen(['sudo', 'ovs-vsctl', 'list-br'],
92
+                               stdout=subprocess.PIPE)
92 93
     stdout, _ = process.communicate()
93 94
     return stdout.split()
94 95