summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomek Dubrownik <t.dubrownik@gmail.com>2012-02-18 02:41:54 +0100
committerTomek Dubrownik <t.dubrownik@gmail.com>2012-02-18 02:41:54 +0100
commit3cb096cc76c7463a0f94649d1fe321c2b7cbffe7 (patch)
tree28c43bb40bb0cae40e771995212436cfff5693d4
parent7922f7c00efa5902e314ec757ed81921b65ac415 (diff)
downloadcheckinator-3cb096cc76c7463a0f94649d1fe321c2b7cbffe7.tar.gz
checkinator-3cb096cc76c7463a0f94649d1fe321c2b7cbffe7.tar.bz2
checkinator-3cb096cc76c7463a0f94649d1fe321c2b7cbffe7.zip
strip " and ; from client-hostname
-rw-r--r--at.py2
1 files changed, 1 insertions, 1 deletions
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('}')):