mirror of
https://github.com/samba-team/samba.git
synced 2025-07-27 07:42:04 +03:00
samba.provision.sambadns: Use == to compare strings, not 'is'.
This commit is contained in:
@ -1017,7 +1017,7 @@ def setup_ad_dns(samdb, secretsdb, domainsid, names, paths, lp, logger,
|
||||
if not is_valid_os_level(os_level):
|
||||
raise Exception("Invalid os level: %r" % os_level)
|
||||
|
||||
if dns_backend is "NONE":
|
||||
if dns_backend == "NONE":
|
||||
logger.info("No DNS backend set, not configuring DNS")
|
||||
return
|
||||
|
||||
|
Reference in New Issue
Block a user