strip " and ; from client-hostname

master
Tomek Dubrownik 2012-02-18 02:41:54 +01:00
parent 7922f7c00e
commit 3cb096cc76
1 changed files with 1 additions and 1 deletions

2
at.py
View File

@ -169,7 +169,7 @@ class DhcpdUpdater(MtimeUpdater):
dt = datetime.strptime(' '.join(cmd[2:]), '%Y/%m/%d %H:%M:%S;')
atime = mktime(dt.utctimetuple())
if(field == 'client-hostname'):
name = cmd[1]
name = cmd[1][1:-2]
if(field == 'hardware'):
hwaddr = cmd[2][:-1]
if(field.startswith('}')):