Strip the bugzilla email in case it has trailing spaces

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-09-01 11:05:48 +02:00
parent 0083b8ee66
commit c69cc689c1

View file

@ -255,7 +255,7 @@ class BugzillaProxy:
bz_email = bz_email.lower() bz_email = bz_email.lower()
self.inverted_user_cache[bz_email] = username self.inverted_user_cache[bz_email] = username
bz_email = email_overrides.get(bz_email, bz_email) 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): def update_open_bugs(self, new_poc, prev_poc, product, name, print_fas_names=False):
"""Change the package owner """Change the package owner
@ -391,10 +391,10 @@ class BugzillaProxy:
f"<default: {default_qa_contact_email.split('@', 1)[0]}@...>" f"<default: {default_qa_contact_email.split('@', 1)[0]}@...>"
) )
if qacontact: if qacontact:
qacontact_email = self._get_bugzilla_email(qacontact) qacontact_email = self._get_bugzilla_email(qacontact).strip()
else: else:
qacontact = default_qa_contact qacontact = default_qa_contact
qacontact_email = default_qa_contact_email qacontact_email = default_qa_contact_email.strip()
pkg_key = package.lower() pkg_key = package.lower()
if pkg_key in product: if pkg_key in product: