summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-07-05 01:40:26 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-07-05 01:40:26 (GMT)
commitb4565d0596222104297d860695f95fd855245d8e (patch)
tree8ac4a35d2ad235c42d23a15cca531ef244233871 /abs/core-testing/LinHES-config
parent9417882281fb051509d3f580b7725aca07c798d1 (diff)
downloadlinhes_pkgbuild-b4565d0596222104297d860695f95fd855245d8e.zip
linhes_pkgbuild-b4565d0596222104297d860695f95fd855245d8e.tar.gz
linhes_pkgbuild-b4565d0596222104297d860695f95fd855245d8e.tar.bz2
linhes-config: tz_subregion was not defined on error
Diffstat (limited to 'abs/core-testing/LinHES-config')
-rwxr-xr-xabs/core-testing/LinHES-config/timezip.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/abs/core-testing/LinHES-config/timezip.py b/abs/core-testing/LinHES-config/timezip.py
index 31acd67..bf6b389 100755
--- a/abs/core-testing/LinHES-config/timezip.py
+++ b/abs/core-testing/LinHES-config/timezip.py
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# -*- coding: utf-8 -*-
# import MySQL module
#used to import the zipcode/timezone/nfs info fromMBE
import MySQLdb
@@ -90,7 +91,7 @@ def selectvars():
try:
tz_region=result[0]
except TypeError:
- tz=""
+ tz_region=""
tempsubregion="HostTimeZoneRegion_" + tz_region
cursor.execute("select data from settings where value=%s and hostname=(%s)",(tempsubregion,BEhostname))