summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-05-15 11:34:32 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-05-15 11:34:32 +0000
commit16f191732d144a2938adbf1fa668395ae84de5b4 (patch)
treee568f261bbd1c90d9f69200ffb49193aa49a429c
parent997510cf7907b8d1c2887a1af96040eda586fa29 (diff)
Allow - in names
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@82 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xmunin/ipmi_sensor_4
1 files changed, 2 insertions, 2 deletions
diff --git a/munin/ipmi_sensor_ b/munin/ipmi_sensor_
index 5e8b51c..a14c8aa 100755
--- a/munin/ipmi_sensor_
+++ b/munin/ipmi_sensor_
@@ -24,10 +24,10 @@ def bail_out(m)
exit 1
end
def normalize_sensor(s)
- s.downcase.tr('^a-z0-9.', '_')
+ s.downcase.tr('^a-z0-9.-', '_')
end
def normalize_unit(s)
- s.downcase.tr('^a-z0-9.', '_')
+ s.downcase.tr('^a-z0-9.-', '_')
end
def get_sensor_data
data = []