backend/server/rhnSQL/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d45dd7ff3e00efb6988a93372d00c3925c3ad27b Author: Jan Pazdziora jpazdziora@redhat.com Date: Thu Jul 1 10:14:19 2010 +0200
We need to force port into integer.
Otherwise we get server.rhnSQL.sql_base.SQLConnectError: (-1, 'an integer is required', 'spaceschema')
diff --git a/backend/server/rhnSQL/__init__.py b/backend/server/rhnSQL/__init__.py index 12fe17f..87b2afd 100644 --- a/backend/server/rhnSQL/__init__.py +++ b/backend/server/rhnSQL/__init__.py @@ -108,7 +108,7 @@ def initDB(dsn=None, backend=None, host="localhost", port=None, username=None, elif k == 'host': host = v elif k == 'port': - port = v + port = int(v) else: raise rhnException("Unknown piece in default_db string", i)
spacewalk-commits@lists.fedorahosted.org