[hptools] Unbreak

darcs-hash:20091017131412-ffbb2-b1ab774da4130a2e4787b6ac9dc6ef2daee6f008.gz
This commit is contained in:
Nicolas Dandrimont 2009-10-17 15:14:12 +02:00
parent 6396529c77
commit 90b0e0c4e1

View file

@ -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