summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-keepalived/htdocs/luci-static
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2024-05-10 09:27:50 +0200
committerFlorian Eckert <fe@dev.tdt.de>2024-05-10 09:27:56 +0200
commit7656c64afb7d3769254f250e0c9b09b7daa98a13 (patch)
treed4447a348185d440e6de2c1b186fb195c284d74c /applications/luci-app-keepalived/htdocs/luci-static
parent2acddabad011ec91ef3b1aec845e06255f2d3794 (diff)
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 <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-keepalived/htdocs/luci-static')
-rw-r--r--applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_instance.js2
1 files changed, 1 insertions, 1 deletions
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'),