Now that we've changed the order of the parameters we need to make
sure that "mysql" is treated as a default value and not a type.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1331 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/db.py b/tko/db.py
index 125798e..3adbdfa 100644
--- a/tko/db.py
+++ b/tko/db.py
@@ -355,7 +355,7 @@
# read db_type from global config
c = global_config.global_config
- db_type = c.get_config_value("TKO", "db_type", 'mysql')
+ db_type = c.get_config_value("TKO", "db_type", default="mysql")
db_type = 'db_' + db_type
exec ('import %s; db = %s.%s(*args, **dargs)'
% (db_type, db_type, db_type))