]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
typo love
authorHolger Levsen <holger@layer-acht.org>
Thu, 11 Oct 2012 14:55:05 +0000 (16:55 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 11 Oct 2012 14:55:05 +0000 (16:55 +0200)
db_add.py

index fca6dae6679b61d44a58054b6d843c7e8e7ae059..3dfe8f0d77790af7f5e12a88c4b7cc8b22269e44 100755 (executable)
--- a/db_add.py
+++ b/db_add.py
@@ -133,7 +133,7 @@ def db_add_requested_liveboot_build (con, request_id, build_id):
     cur = con.cursor()
     cur.execute("SAVEPOINT a")
     try:
-        cur.execute("INSERT INTO liveboot_request_jenkins_build(liveboot_request_id, jenkins_build_id) VALUES(%s, %s) RETURNING id" % (request_id_ build_id))
+        cur.execute("INSERT INTO liveboot_request_jenkins_build(liveboot_request_id, jenkins_build_id) VALUES(%s, %s) RETURNING id" % (request_id, build_id))
     except psycopg2.DatabaseError as e:
         cur.execute("ROLLBACK TO a")  # have to rollback after failed command
         #logger.debug("INSERT INTO jenkins_build(jenkins_build_number, jenkins_job_id) VALUES(%s, %s) RETURNING id" % (number, db_id))