summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/mv_install.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/LinHES-config/mv_install.py')
-rwxr-xr-xabs/core-testing/LinHES-config/mv_install.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/abs/core-testing/LinHES-config/mv_install.py b/abs/core-testing/LinHES-config/mv_install.py
index 1ebc2f1..2f2d1c2 100755
--- a/abs/core-testing/LinHES-config/mv_install.py
+++ b/abs/core-testing/LinHES-config/mv_install.py
@@ -144,13 +144,15 @@ def timezone_to_db(timefile):
f.close()
except:
logging.debug("Couldn't open /tmp/etc/timezone, will not set the timezone")
+ updatedb("HostTimeZone", "Unknown");
return
+ update_db("HostTimeZone", timezonecontents);
tzsplit = timezonecontents.partition('/')
print tzsplit
if tzsplit[2] == '' :
- update_db("HostTimeZoneRegion", tzsplit[0])
+ update_db("HostTimeZoneRegion", tzsplit[0])
else:
- update_db("HostTimeZoneRegion", tzsplit[0])
+ update_db("HostTimeZoneRegion", tzsplit[0])
tztemp="HostTimeZoneRegion_%s" % tzsplit[0]
update_db(tztemp, tzsplit[2])