From 68124db323409b00a976db13bab7ee4f10393337 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 17 Oct 2023 13:01:38 -0400 Subject: [PATCH] Remove extra spaces --- daemon-common/vm.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/daemon-common/vm.py b/daemon-common/vm.py index 494ae9bc..b5b5c17e 100644 --- a/daemon-common/vm.py +++ b/daemon-common/vm.py @@ -1458,16 +1458,10 @@ def backup_vm( ttot = round(tend - tstart, 2) if is_snapshot_remove_failed: - 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)}", - ) + 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)}" elif retain_snapshots: - retmsg = ( - f"Successfully backed up VM '{domain}' ({backup_type} @ {datestring}, snapshots retained) to '{target_path}' in {ttot} seconds.", - ) + retmsg = f"Successfully backed up VM '{domain}' ({backup_type}@{datestring}, snapshots retained) to '{target_path}' in {ttot} seconds." else: - retmsg = ( - f"Successfully backed up VM '{domain}' ({backup_type} @ {datestring}) to '{target_path}' in {ttot} seconds.", - ) + retmsg = f"Successfully backed up VM '{domain}' ({backup_type}@{datestring}) to '{target_path}' in {ttot} seconds." return True, retmsg