Add state confirmation to newline

This commit is contained in:
Joshua Boniface 2023-10-17 12:53:20 -04:00
parent 3d12915989
commit 3e259bd926
1 changed files with 5 additions and 2 deletions

View File

@ -1629,13 +1629,16 @@ def cli_vm_backup(domain, target_path, incremental_parent, retain_snapshots):
echo(
CLI_CONFIG,
f"Backing up VM {domain}... ",
f"Backing up VM '{domain}'... ",
newline=False,
)
retcode, retmsg = pvc.lib.vm.vm_backup(
CLI_CONFIG, domain, target_path, incremental_parent, retain_snapshots
)
echo(CLI_CONFIG, "")
if retcode:
echo(CLI_CONFIG, "done.")
else:
echo(CLI_CONFIG, "failed.")
finish(retcode, retmsg)