luci-app-keepalived: fix nopreempt value handling
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 10 May 2024 07:27:50 +0000 (09:27 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 10 May 2024 07:27:56 +0000 (09:27 +0200)
commit7656c64afb7d3769254f250e0c9b09b7daa98a13
treed4447a348185d440e6de2c1b186fb195c284d74c
parent2acddabad011ec91ef3b1aec845e06255f2d3794
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>
applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/vrrp_instance.js