]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: cluster backup: fix running backup with prune settings
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 6 Sep 2021 11:32:26 +0000 (13:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 Sep 2021 09:13:18 +0000 (11:13 +0200)
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>
www/manager6/dc/Backup.js

index f06c25ff1fa26fa7f6680f16bae7c2a7dd4b3cba..1b7b1aa1f76b98d9545f08e243544913a8c80699 100644 (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 = [];