[pve-devel] [PATCH manager v2 1/3] ui: realm: sync: don't use realm defaults for remove-vanished

Dominik Csapak d.csapak at proxmox.com
Tue Dec 6 12:06:33 CET 2022


if we don't manually set it to the empty string, it will use the
realm default, which might be unexpected. this way, the sync always
does what the user saw in the sync window.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/dc/SyncWindow.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/manager6/dc/SyncWindow.js b/www/manager6/dc/SyncWindow.js
index c46dd7017..0ac109196 100644
--- a/www/manager6/dc/SyncWindow.js
+++ b/www/manager6/dc/SyncWindow.js
@@ -42,6 +42,8 @@ Ext.define('PVE.dc.SyncWindow', {
 	    });
 	    if (vanished_opts.length > 0) {
 		params['remove-vanished'] = vanished_opts.join(';');
+	    } else {
+		params['remove-vanished'] = 'none';
 	    }
 
 	    params['dry-run'] = is_preview ? 1 : 0;
-- 
2.30.2






More information about the pve-devel mailing list