mirror of
https://github.com/ceph/ceph
synced 2026-08-01 22:45:39 +00:00
qa/workunits/smb: add option to modify share without waiting
Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
bb01b31129
commit
f3a7fad80a
@ -195,7 +195,7 @@ def get_share_by_id(smb_cfg, cluster_id, share_id):
|
||||
return None
|
||||
|
||||
|
||||
def apply_share_config(smb_cfg, share):
|
||||
def apply_share_config(smb_cfg, share, immediate=False):
|
||||
"""Apply share configuration via the apply command."""
|
||||
jres = cephutil.cephadm_shell_cmd(
|
||||
smb_cfg,
|
||||
@ -214,5 +214,6 @@ def apply_share_config(smb_cfg, share):
|
||||
assert resources_ret['resource_type'] == 'ceph.smb.share'
|
||||
# sleep to ensure the settings got applied in smbd
|
||||
# TODO: make this more dynamic somehow
|
||||
time.sleep(60)
|
||||
if not immediate:
|
||||
time.sleep(60)
|
||||
return resources_ret
|
||||
|
||||
Loading…
Reference in New Issue
Block a user