Set correct verbage

This commit is contained in:
Joshua Boniface 2024-10-09 00:38:59 -04:00
parent 7f3ab4e119
commit 1c83584788
1 changed files with 6 additions and 1 deletions

View File

@ -4285,10 +4285,15 @@ def vm_worker_create_mirror(
block_t_end = time.time() block_t_end = time.time()
block_mbps = round(block_total_mb / (block_t_end - block_t_start), 1) block_mbps = round(block_total_mb / (block_t_end - block_t_start), 1)
if incremental_parent is not None:
verb = "updated"
else:
verb = "created"
current_stage += 1 current_stage += 1
return finish( return finish(
celery, celery,
f"Successfully created mirror of VM '{domain}' (snapshot '{snapshot_name}') on remote cluster '{destination_api_uri}' (average {block_mbps} MB/s)", f"Successfully {verb} mirror of VM '{domain}' (snapshot '{snapshot_name}') on remote cluster '{destination_api_uri}' (average {block_mbps} MB/s)",
current=current_stage, current=current_stage,
total=total_stages, total=total_stages,
) )