Ubuntu Pastebin

Paste from smoser at Mon, 30 Oct 2017 19:22:03 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
--- a/tests/cloud_tests/instances/nocloudkvm.py
+++ b/tests/cloud_tests/instances/nocloudkvm.py
@@ -76,7 +76,7 @@ class NoCloudKVMInstance(base.Instance):
             command = ['sh', '-c', command]
 
         if self.pid:
-            return self.ssh(command)
+            return self.ssh(['sudo'] + list(command))
         else:
             return self.mount_image_callback(command) + (0,)
Download as text