Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
o.optional = false;
o.rmempty = false;
if (vrrp_scripts != '') {
- for (i = 0; i < vrrp_scripts.length; i++) {
+ for (let i = 0; i < vrrp_scripts.length; i++) {
o.value(vrrp_scripts[i]['name']);
}
}
real_servers = uci.sections('keepalived', 'real_server');
o = s.taboption('general', form.DynamicList, 'real_server', _('Real Server'));
if (real_servers != '') {
- for (i = 0; i < real_servers.length; i++) {
+ for (let i = 0; i < real_servers.length; i++) {
o.value(real_servers[i]['name']);
}
}