From 03db9604e1f7dc0756f96dc872bb5fc84816fbec Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 25 Aug 2024 15:55:00 -0400 Subject: [PATCH] Ensure recipients is a proper list --- client-cli/pvc/cli/cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client-cli/pvc/cli/cli.py b/client-cli/pvc/cli/cli.py index 4087262f..36b335a2 100644 --- a/client-cli/pvc/cli/cli.py +++ b/client-cli/pvc/cli/cli.py @@ -2196,9 +2196,14 @@ def cli_vm_autobackup(email_report, force_full_flag, wait_flag): which can help synchronize the backups of existing VMs with new ones. """ + if email_report is not None: + email_recipients = email_report.split(",") + else: + email_recipients = None + retcode, retmsg = pvc.lib.vm.vm_autobackup( CLI_CONFIG, - email_recipients=email_report, + email_recipients=email_recipients, force_full_flag=force_full_flag, wait_flag=wait_flag, )