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.csa...@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to