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:
parent
506e59558c
commit
dd9402fccf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue