Browse code

Fix ovs-vsctl executed in worlddump.py failed issue

add sudo before ovs-vsctl command.

Change-Id: I1a7dd9504da766beb452bd749e325931678de64e
Closes-Bug: #1576560
(cherry picked from commit 6ba17f7d014aa50643a8920ee092424051d78c08)

yan.haifeng authored on 2016/04/29 16:59:56
Showing 1 changed files
... ...
@@ -77,7 +77,8 @@ def _header(name):
77 77
 
78 78
 
79 79
 def _bridge_list():
80
-    process = subprocess.Popen(['ovs-vsctl', 'list-br'], stdout=subprocess.PIPE)
80
+    process = subprocess.Popen(['sudo', 'ovs-vsctl', 'list-br'],
81
+                               stdout=subprocess.PIPE)
81 82
     stdout, _ = process.communicate()
82 83
     return stdout.split()
83 84