Fix E713 test for membership should be 'not in'

Related: https://pagure.io/freeipa/issue/8306
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
Christian Heimes
2020-04-30 15:12:34 +02:00
parent 690b5519f8
commit d0818e1809
11 changed files with 12 additions and 12 deletions

View File

@@ -341,7 +341,7 @@ class WSGIExecutioner(Executioner):
command = None
e = None
if not 'HTTP_REFERER' in environ:
if 'HTTP_REFERER' not in environ:
return self.marshal(result, RefererError(referer='missing'), _id)
if not environ['HTTP_REFERER'].startswith('https://%s/ipa' % self.api.env.host) and not self.env.in_tree:
return self.marshal(result, RefererError(referer=environ['HTTP_REFERER']), _id)