]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: don't remove sudo from the command arguments 44305/head
authorRishabh Dave <ridave@redhat.com>
Mon, 24 Jan 2022 18:33:05 +0000 (00:03 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 27 Apr 2022 10:32:36 +0000 (16:02 +0530)
run_shell() in qa.tasks.cephfs.mount.CephFSMount prepends "sudo" to its
command arguments but it doesn't specify to the underlying method that
"sudo" shouldn't be deleted from the command arguments.

Fixes: https://tracker.ceph.com/issues/53601
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/mount.py

index 9674bea0d988592eb008c6d7307a03615eb77eb6..931752ce4730a0e2f727281715344ccee06f88da 100644 (file)
@@ -711,7 +711,9 @@ class CephFSMount(object):
         if sudo:
             args.insert(0, 'sudo')
 
-        return self.client_remote.run(args=args, cwd=cwd, timeout=timeout, stdout=stdout, stderr=stderr, **kwargs)
+        return self.client_remote.run(args=args, cwd=cwd, timeout=timeout,
+                                      stdout=stdout, stderr=stderr,
+                                      omit_sudo=False, **kwargs)
 
     def run_shell_payload(self, payload, **kwargs):
         return self.run_shell(["bash", "-c", Raw(f"'{payload}'")], **kwargs)