strip " and ; from client-hostname
This commit is contained in:
parent
7922f7c00e
commit
3cb096cc76
1 changed files with 1 additions and 1 deletions
2
at.py
2
at.py
|
@ -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('}')):
|
||||
|
|
Loading…
Add table
Reference in a new issue