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>
pull/7110/head
Florian Eckert 2024-05-10 09:27:50 +02:00
parent 2acddabad0
commit 7656c64afb
1 changed files with 1 additions and 1 deletions

View File

@ -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'),