From: John Mulligan Date: Wed, 1 Jul 2026 21:54:59 +0000 (-0400) Subject: qa/workunits/smb: add option to modify share without waiting X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f3a7fad80a88aba400d42e111e6ab0ef08dd5538;p=ceph.git qa/workunits/smb: add option to modify share without waiting Signed-off-by: John Mulligan --- diff --git a/qa/workunits/smb/tests/smbutil.py b/qa/workunits/smb/tests/smbutil.py index 38f7f018a57..64377f1cb3f 100644 --- a/qa/workunits/smb/tests/smbutil.py +++ b/qa/workunits/smb/tests/smbutil.py @@ -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