Ensure recipients is a proper list

This commit is contained in:
Joshua Boniface 2024-08-25 15:55:00 -04:00
parent f1668bffcc
commit 03db9604e1
1 changed files with 6 additions and 1 deletions

View File

@ -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. 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( retcode, retmsg = pvc.lib.vm.vm_autobackup(
CLI_CONFIG, CLI_CONFIG,
email_recipients=email_report, email_recipients=email_recipients,
force_full_flag=force_full_flag, force_full_flag=force_full_flag,
wait_flag=wait_flag, wait_flag=wait_flag,
) )