summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/timezip.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-08-06 05:21:15 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-08-06 05:21:15 (GMT)
commitfd8ebb392cd04e7c59ae0dd696d93f0ef509b89c (patch)
tree749f49485c3fb591eb3936092a2e43cd91ec170d /abs/core/LinHES-config/timezip.py
parent2c376fdb646fce75480d593754129028ec2380ac (diff)
downloadlinhes_pkgbuild-fd8ebb392cd04e7c59ae0dd696d93f0ef509b89c.zip
linhes_pkgbuild-fd8ebb392cd04e7c59ae0dd696d93f0ef509b89c.tar.gz
linhes_pkgbuild-fd8ebb392cd04e7c59ae0dd696d93f0ef509b89c.tar.bz2
linhes-config: fix hobbitlclient init.
Diffstat (limited to 'abs/core/LinHES-config/timezip.py')
-rwxr-xr-xabs/core/LinHES-config/timezip.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/abs/core/LinHES-config/timezip.py b/abs/core/LinHES-config/timezip.py
index ca20921..4e494be 100755
--- a/abs/core/LinHES-config/timezip.py
+++ b/abs/core/LinHES-config/timezip.py
@@ -106,9 +106,10 @@ def selectvars():
result = cursor.fetchone()
try:
hobbitclient=result[0]
- except TypeError:
+ except:
+ hobbitclient="1"
+ else:
hobbitclient="1"
-
def insertvars():
@@ -184,7 +185,7 @@ def insertvars():
#hobbitclient
cursor.execute("select * from settings where value='HostServiceHobbitclient' and hostname=(%s)",(thishostname))
result = cursor.fetchone()
- if ( tz != ""):
+ if ( hobbitclient != ""):
if (result == None):
cursor.execute("INSERT INTO settings (value,data,hostname) VALUES ('HostServiceHobbitclient',(%s),(%s))",(hobbitclient,thishostname))
print "inserting hobbitcleint"