]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart_runner: set omit_sudo to True by default 35539/head
authorRishabh Dave <ridave@redhat.com>
Wed, 10 Jun 2020 13:47:28 +0000 (19:17 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 11 Jun 2020 11:35:40 +0000 (17:05 +0530)
Let's set omit_sudo to True by default since we don't to run
commands with sudo on developer's machine as far as possible.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/vstart_runner.py

index aae37a187d515cb54e5672167de164aebffd1f5f..14cdb28f4bcca17e86f9cf4906c8d5ffbd196538 100644 (file)
@@ -356,9 +356,12 @@ class LocalRemote(object):
     def run(self, **kwargs):
         return self._do_run(**kwargs)
 
+    # XXX: omit_sudo is set to True since using sudo can change the ownership
+    # of files which becomes problematic for following executions of
+    # vstart_runner.py.
     def _do_run(self, args, check_status=True, wait=True, stdout=None,
                 stderr=None, cwd=None, stdin=None, logger=None, label=None,
-                env=None, timeout=None, omit_sudo=False):
+                env=None, timeout=None, omit_sudo=True):
         args = self._perform_checks_and_return_list_of_args(args, omit_sudo)
 
         # We have to use shell=True if any run.Raw was present, e.g. &&