ui: cluster backup: fix running backup with prune settings

The API expects a property string for retention settings, so make sure
that's what's passed in.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-09-06 13:32:26 +02:00 committed by Thomas Lamprecht
parent 514847b7fb
commit 7f14fad199

View File

@ -880,6 +880,10 @@ Ext.define('PVE.dc.BackupView', {
delete job.node;
job.all = job.all === true ? 1 : 0;
if (job['prune-backups']) {
job['prune-backups'] = PVE.Parser.printPropertyString(job['prune-backups']);
}
let allNodes = PVE.data.ResourceStore.getNodes();
let nodes = allNodes.filter(node => node.status === 'online').map(node => node.node);
let errors = [];