Be more selective about openids in bug script.
Look for login.launchpad.net openids for the openid->username
mapping. Some users have other openids that won't work.
Change-Id: I6201d33e553120548e9d910830dfe23072b65b63
Reviewed-on: https://review.openstack.org/19502
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
diff --git a/jeepyb/cmd/update_bug.py b/jeepyb/cmd/update_bug.py
index a480862..e86be8d 100644
--- a/jeepyb/cmd/update_bug.py
+++ b/jeepyb/cmd/update_bug.py
@@ -83,7 +83,7 @@
SELECT t.account_id FROM account_external_ids t
WHERE t.email_address = %s )
original ON t.account_id = original.account_id
- AND t.external_id LIKE 'https://%%'"""
+ AND t.external_id LIKE 'https://login.launchpad.net%%'"""
cursor = jeepyb.gerritdb.connect().cursor()
cursor.execute(query, searchkey)