[Qa-jenkins-scm] [jenkins.debian.net] 01/06: reproducible: common.py: use the keyword syntax instead of libpq string to connect to udd
Holger Levsen
holger at moszumanska.debian.org
Tue Aug 18 11:36:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit cdadcbe045db5a66cf71b749a9613b901b4316f8
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Mon Aug 17 09:55:05 2015 +0000
reproducible: common.py: use the keyword syntax instead of libpq string to connect to udd
---
bin/reproducible_common.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 8eae095..e51afd7 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -321,10 +321,12 @@ def start_udd_connection():
db = "udd"
try:
log.debug("Starting connection to the UDD database")
- conn = psycopg2.connect("dbname=" + db +
- " user=" + username +
- " host=" + host +
- " password=" + password)
+ conn = psycopg2.connect(
+ database=db,
+ user=username,
+ host=host,
+ password=password
+ )
except:
log.error('Erorr connecting to the UDD database replica.' +
'The full error is:')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list