[pve-devel] [PATCH manager 1/6] ui: cluster backup: fix running backup with prune settings
Fabian Ebner
f.ebner at proxmox.com
Mon Sep 6 13:32:26 CEST 2021
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 at proxmox.com>
---
www/manager6/dc/Backup.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index f06c25ff..1b7b1aa1 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -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 = [];
--
2.30.2
More information about the pve-devel
mailing list