luci-app-statistics: fix APC UPS host configuration
Ensure that list of hosts is stored as space separated list, like it was
done in the previous Lua implementation.
Fixes: #5010
Fixes: e7d22dce5
("luci-app-statistics: convert collectd configuration to client side views")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
52297b1359
commit
dd5d96afdb
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,9 @@ return baseclass.extend({
|
||||||
o.default = 'localhost';
|
o.default = 'localhost';
|
||||||
o.datatype = 'host';
|
o.datatype = 'host';
|
||||||
o.depends('enable', '1');
|
o.depends('enable', '1');
|
||||||
|
o.write = function(section_id, value) {
|
||||||
|
return form.Value.prototype.write.call(this, section_id, L.toArray(value).join(' '));
|
||||||
|
};
|
||||||
|
|
||||||
o = s.option(form.Value, 'Port', _('Port for apcupsd communication'));
|
o = s.option(form.Value, 'Port', _('Port for apcupsd communication'));
|
||||||
o.default = '3551';
|
o.default = '3551';
|
||||||
|
|
Loading…
Reference in a new issue