diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-10-11 17:11:44 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-10-11 18:50:40 +0200 |
commit | 2adf27a99b999a4fd0329d9fa398a9208b60e367 (patch) | |
tree | fb38e2f50ccc08da455980764df74eb7724b3de8 /source4/scripting | |
parent | cabd2b2e960a7d6346b621a4cf37429c944a7720 (diff) | |
download | samba-2adf27a99b999a4fd0329d9fa398a9208b60e367.tar.gz samba-2adf27a99b999a4fd0329d9fa398a9208b60e367.tar.bz2 samba-2adf27a99b999a4fd0329d9fa398a9208b60e367.zip |
samba.provision.sambadns: Use == to compare strings, not 'is'.
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/provision/sambadns.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision/sambadns.py b/source4/scripting/python/samba/provision/sambadns.py index 576a33fadf..a66fde1425 100644 --- a/source4/scripting/python/samba/provision/sambadns.py +++ b/source4/scripting/python/samba/provision/sambadns.py @@ -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 |