From 7656c64afb7d3769254f250e0c9b09b7daa98a13 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 10 May 2024 09:27:50 +0200 Subject: luci-app-keepalived: fix nopreempt value handling The 'nopreempt' option is marked with the prefix 'no_value_' in the keepalived init script. This means that if the value is not set in the keepalived configuration, it must be removed from the uci configuration. To get this behavior, the rmempty flag in the LuCI must be removed. fixes #7114 Signed-off-by: Florian Eckert --- .../htdocs/luci-static/resources/view/keepalived/vrrp_instance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-keepalived/htdocs/luci-static') diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_instance.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_instance.js index f9293d6c20..c6db62d2b1 100644 --- a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_instance.js +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_instance.js @@ -64,8 +64,8 @@ return view.extend({ _('Allows the lower priority machine to maintain the master role,') + _('even when a higher priority machine comes back online.') + ' ' + _('For this to work, the initial state of this entry must be BACKUP.')); + o.optional = true; o.default = false; - o.rmempty = false; ipaddress = uci.sections('keepalived', 'ipaddress'); o = s.taboption('general', form.DynamicList, 'virtual_ipaddress', _('Virtual IP Address'), -- cgit v1.2.3