prometheus-node-exporter-lua: handle empty lines in all_sta output correctly
authorMartin Weinelt <hexa@darmstadt.ccc.de>
Thu, 24 Jun 2021 15:50:01 +0000 (17:50 +0200)
committerEtienne Champetier <champetier.etienne@gmail.com>
Tue, 6 Jul 2021 17:37:36 +0000 (13:37 -0400)
commit0a9d2b818d4c0d6c1c8df59fde9808bae6ddb72d
treee6bf9ca4b37525adda37aae6371b1ae5dc91f53a
parent6d85547f243c3fbd13a60135652e91046299dba3
prometheus-node-exporter-lua: handle empty lines in all_sta output correctly

An empty line has a name and value that is nil and setting a table
index to nil breaks metrics for every vif after the first one.

Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de>
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua