This fixes some issues with global_config relating to the fact
that before all you could get were strings.
From: Travis Miller <raphtee@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1326 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/scheduler/monitor_db b/scheduler/monitor_db
index 48fa107..862eb23 100755
--- a/scheduler/monitor_db
+++ b/scheduler/monitor_db
@@ -155,16 +155,15 @@
# get global config and parse for info
c = global_config.global_config
dbase = "AUTOTEST_WEB"
- DB_HOST = c.get_config_value(dbase, "host", "localhost")
- DB_SCHEMA = c.get_config_value(dbase, "database",
- "autotest_web")
+ DB_HOST = c.get_config_value(dbase, "host")
+ DB_SCHEMA = c.get_config_value(dbase, "database")
global _testing_mode
if _testing_mode:
DB_SCHEMA = 'stresstest_autotest_web'
- DB_USER = c.get_config_value(dbase, "user", "autotest")
- DB_PASS = c.get_config_value(dbase, "password", "google")
+ DB_USER = c.get_config_value(dbase, "user")
+ DB_PASS = c.get_config_value(dbase, "password")
while not self.conn:
try: