From c69cc689c14ce54abca6156862916d510f879128 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 1 Sep 2020 11:05:48 +0200 Subject: [PATCH] Strip the bugzilla email in case it has trailing spaces Signed-off-by: Pierre-Yves Chibon --- distgit_bugzilla_sync/script.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/distgit_bugzilla_sync/script.py b/distgit_bugzilla_sync/script.py index 258144a..d24f9cd 100644 --- a/distgit_bugzilla_sync/script.py +++ b/distgit_bugzilla_sync/script.py @@ -255,7 +255,7 @@ class BugzillaProxy: bz_email = bz_email.lower() self.inverted_user_cache[bz_email] = username bz_email = email_overrides.get(bz_email, bz_email) - return bz_email + return bz_email.strip() def update_open_bugs(self, new_poc, prev_poc, product, name, print_fas_names=False): """Change the package owner @@ -391,10 +391,10 @@ class BugzillaProxy: f"" ) if qacontact: - qacontact_email = self._get_bugzilla_email(qacontact) + qacontact_email = self._get_bugzilla_email(qacontact).strip() else: qacontact = default_qa_contact - qacontact_email = default_qa_contact_email + qacontact_email = default_qa_contact_email.strip() pkg_key = package.lower() if pkg_key in product: