[SCM] Samba Shared Repository - branch master updated

Andreas Schneider asn at samba.org
Tue Mar 24 14:32:02 UTC 2020


The branch, master has been updated
       via  d61a33acda4 selftest: Fix string compare in DnsHandler() of dns_hub.py
      from  716f52f68b2 ctdb-recoverd: Avoid dereferencing NULL rec->nodemap

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d61a33acda4f8290540ac7f7318c9dc48ed8315a
Author: Andreas Schneider <asn at samba.org>
Date:   Fri Mar 13 15:15:53 2020 +0100

    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 at samba.org>
    Reviewed-by: Ralph Boehme <slow at samba.org>
    
    Autobuild-User(master): Andreas Schneider <asn at cryptomilk.org>
    Autobuild-Date(master): Tue Mar 24 14:31:25 UTC 2020 on sn-devel-184

-----------------------------------------------------------------------

Summary of changes:
 selftest/target/dns_hub.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/selftest/target/dns_hub.py b/selftest/target/dns_hub.py
index 9360f9136fc..dcf59dcd701 100755
--- a/selftest/target/dns_hub.py
+++ b/selftest/target/dns_hub.py
@@ -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


-- 
Samba Shared Repository



More information about the samba-cvs mailing list