mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
selftest: Fix string compare in DnsHandler() of dns_hub.py
dns_hub.py:115: SyntaxWarning: "is" with a literal. Did you mean "=="? if forwarder is 'ignore': dns_hub.py:117: SyntaxWarning: "is" with a literal. Did you mean "=="? elif forwarder is 'fail': Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Mar 24 14:31:25 UTC 2020 on sn-devel-184
This commit is contained in:
parent
716f52f68b
commit
d61a33acda
@ -112,9 +112,9 @@ class DnsHandler(sserver.BaseRequestHandler):
|
||||
forwarder = self.forwarder(name)
|
||||
response = None
|
||||
|
||||
if forwarder is 'ignore':
|
||||
if forwarder == 'ignore':
|
||||
return
|
||||
elif forwarder is 'fail':
|
||||
elif forwarder == 'fail':
|
||||
pass
|
||||
elif forwarder in ['torture', None]:
|
||||
response = query
|
||||
|
Loading…
x
Reference in New Issue
Block a user