From 3cb096cc76c7463a0f94649d1fe321c2b7cbffe7 Mon Sep 17 00:00:00 2001 From: Tomek Dubrownik Date: Sat, 18 Feb 2012 02:41:54 +0100 Subject: [PATCH] strip " and ; from client-hostname --- at.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/at.py b/at.py index af4e89d..8bbd84b 100644 --- a/at.py +++ b/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('}')):