qa/workunits/smb: add option to modify share without waiting

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2026-07-01 17:54:59 -04:00
parent bb01b31129
commit f3a7fad80a

View File

@ -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