From 90b0e0c4e1a65a616f8ee18a97fd5e21dce114ff Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sat, 17 Oct 2009 15:14:12 +0200 Subject: [PATCH] [hptools] Unbreak darcs-hash:20091017131412-ffbb2-b1ab774da4130a2e4787b6ac9dc6ef2daee6f008.gz --- gestion/hptools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/hptools.py b/gestion/hptools.py index ec416e91..b51a35c3 100644 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -228,7 +228,7 @@ class hpswitch : for value in data.itervalues(): mac = findall('".*"', value)[0][1:-1] if ' ' in mac: - macs.append(":".join(mac.lower().split(" "))) + macs.append(":".join(mac.lower().split(" ")[:-1])) else: macs.append(":".join("%02x" % ord(digit) for digit in mac)) print macs