aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-12-08 07:45:34 +0100
committerGuido Günther <agx@sigxcpu.org>2014-12-08 07:45:34 +0100
commitcc402ea88a72441fe1978e3bc6bcffa2279030ef (patch)
tree775c8ce0187fdac290ad88767cf543f9c8d2a38f
parentdff5fd586d21aea8aba94fdebb75c9a7fd843ceb (diff)
Properly canonicalize name
So the reported value matches the config value
-rwxr-xr-xpellematic-draft4
1 files changed, 2 insertions, 2 deletions
diff --git a/pellematic-draft b/pellematic-draft
index 551b75b..45a2288 100755
--- a/pellematic-draft
+++ b/pellematic-draft
@@ -128,13 +128,13 @@ def fetch_values(url):
for item in out:
name = get_name(item)
if name:
- print "%s.value %.2f" % (name,
+ print "%s.value %.2f" % (canon(name),
calc(item))
def main(args):
if not url:
- print >>sys.stderr, "No url configured"
+ print >>sys.stderr, "No ip address configured"
return 1
if len(args) > 1:
if args[1] in [ 'autoconf', 'detect' ]: