mirror of
https://github.com/ceph/ceph
synced 2026-08-01 22:45:39 +00:00
qa/workunits/smb: add an argument to set up volume mappings
Add an argument to the cephadm shell wrapper function that makes it easy and obvious where to add volume mappings. This will be used in a future change to map in a directory containing TLS certificates and such. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
bddb807fab
commit
e77b9efd2d
@ -56,6 +56,9 @@ def cephadm_shell_cmd(
|
||||
f'/home/{smb_cfg.ssh_user}/cephtest/cephadm',
|
||||
'shell',
|
||||
]
|
||||
volumes = kwargs.pop('volumes', [])
|
||||
for v in volumes:
|
||||
cmd.extend(['-v', v])
|
||||
cmd += list(args)
|
||||
proc = subprocess.run(cmd, **kwargs)
|
||||
if load is LoadJSON.BOTH:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user