diff options
author | Britney Fransen <brfransen@gmail.com> | 2011-08-06 05:41:54 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2011-08-06 05:41:54 (GMT) |
commit | 69ba0bb5ec4b6f6ecf020b60cdc7040edba69c75 (patch) | |
tree | 9595fe59c48acfdbd8a7c9a2a008621c260d9ef6 /abs/core/LinHES-config/timezip.py | |
parent | f11b93d266edfbc081e7b78204103dcf43f7f92c (diff) | |
parent | 7a18aa65cbe27c5213df0f2642e381bc0a2d5e03 (diff) | |
download | linhes_pkgbuild-69ba0bb5ec4b6f6ecf020b60cdc7040edba69c75.zip linhes_pkgbuild-69ba0bb5ec4b6f6ecf020b60cdc7040edba69c75.tar.gz linhes_pkgbuild-69ba0bb5ec4b6f6ecf020b60cdc7040edba69c75.tar.bz2 |
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/LinHES-config/timezip.py')
-rwxr-xr-x | abs/core/LinHES-config/timezip.py | 7 |
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" |