Commit e107cfd7 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

dhcpd watcher (unbound) cleanup mac address, remove ;

(cherry picked from commit 1474f77d)
parent 8b9f407e
......@@ -71,7 +71,7 @@ class DHCPDLease(object):
except ValueError:
field_value = None
elif field_name == 'hardware' and len(parts) >= 3:
field_value = {'hardware-type': parts[1], 'mac-address': parts[2]}
field_value = {'hardware-type': parts[1], 'mac-address': parts[2].split(';')[0]}
elif field_name in('uid', 'client-hostname') and len(parts) >= 2 and parts[1].find('"') > -1:
field_value = parts[1].split('"')[1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment