Remove extra spaces

This commit is contained in:
Joshua Boniface 2023-10-17 13:01:38 -04:00
parent 8921efd269
commit 68124db323
1 changed files with 3 additions and 9 deletions

View File

@ -1458,16 +1458,10 @@ def backup_vm(
ttot = round(tend - tstart, 2) ttot = round(tend - tstart, 2)
if is_snapshot_remove_failed: if is_snapshot_remove_failed:
retmsg = ( retmsg = f"WARNING: Successfully backed up VM '{domain}' ({backup_type}@{datestring}) to '{target_path}' in {ttot} seconds, but failed to remove snapshot as requested for volume(s) {', '.join(which_snapshot_remove_failed)}: {', '.join(msg_snapshot_remove_failed)}"
f"WARNING: Successfully backed up VM '{domain}' ({backup_type} @ {datestring}) to '{target_path}' in {ttot} seconds, but failed to remove snapshot as requested for volume(s) {', '.join(which_snapshot_remove_failed)}: {', '.join(msg_snapshot_remove_failed)}",
)
elif retain_snapshots: elif retain_snapshots:
retmsg = ( retmsg = f"Successfully backed up VM '{domain}' ({backup_type}@{datestring}, snapshots retained) to '{target_path}' in {ttot} seconds."
f"Successfully backed up VM '{domain}' ({backup_type} @ {datestring}, snapshots retained) to '{target_path}' in {ttot} seconds.",
)
else: else:
retmsg = ( retmsg = f"Successfully backed up VM '{domain}' ({backup_type}@{datestring}) to '{target_path}' in {ttot} seconds."
f"Successfully backed up VM '{domain}' ({backup_type} @ {datestring}) to '{target_path}' in {ttot} seconds.",
)
return True, retmsg return True, retmsg