Signed-off-by: John Mulligan <jmulligan@redhat.com>
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,
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