]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/cephfs: don't pass cmd args from run_as_user as str
authorRishabh Dave <ridave@redhat.com>
Wed, 17 Jun 2020 10:08:59 +0000 (15:38 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 17 Jun 2020 17:43:05 +0000 (23:13 +0530)
commit23f279d7a9ec2578779e06b4775b3f440a04340e
tree4a8d43f9e216d609952832880b33810fa4617dea
parent4c9811aae321cc2898b6a24865fe199edd9f42d9
qa/cephfs: don't pass cmd args from run_as_user as str

Passing command arguments from run_as_user() to run_shell() as string
can be problematic since command argument to be passed to -c option of
sudo should be a single argument (i.e. 'ls dir' instead of
['ls', 'dir']).

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