Merge pull request #46991 from rishabh-d-dave/qa-caps-helper-rm-path

qa/cephfs: delete path from cmd args after use

Reviewed-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
Rishabh Dave 2022-07-20 13:01:51 +05:30 committed by GitHub
commit 4c24755126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,7 @@ class CapsHelper(CephFSTestCase):
cmdargs.append(path)
mount.negtestcmd(args=cmdargs, retval=1,
errmsg='permission denied')
cmdargs.pop(-1)
def get_mon_cap_from_keyring(self, client_name):
keyring = self.run_cluster_cmd(cmd=f'auth get {client_name}')