Use equality test instead of identity test

It doesn't seem to work on the string with the same value. So let's use equality
instead of identity to check the strings.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2022-07-21 16:18:23 +02:00
parent 506e59558c
commit dd9402fccf

View file

@ -135,7 +135,7 @@ class SCMRequestProcessor(ToddlerBase):
"""
project_name = message.body["project"]["fullname"]
if project_name is not PROJECT_NAMESPACE:
if project_name != PROJECT_NAMESPACE:
_log.info(
"The message doesn't belong to project {0}. Skipping message.".format(
PROJECT_NAMESPACE