Bug 1551777: tko/db.py does not support empty password for 'nobody' queries.
Allow '' as an explicit password value; only None means use default.
Low risk.

Signed-off-by: Duane Sand <duanes@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2583 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/db.py b/tko/db.py
index d66db28..442f8af 100644
--- a/tko/db.py
+++ b/tko/db.py
@@ -54,7 +54,7 @@
             self.user = user
         else:
             self.user = get_value("TKO", "user")
-        if password:
+        if password is not None:
             self.password = password
         else:
             self.password = get_value("TKO", "password")