From f44ad3671876802a42846597be901257633e8ca3 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 24 Sep 2012 23:02:05 +0200 Subject: samba-tool domain provision: DNS forwarder is not a boolean. Autobuild-User(master): Jelmer Vernooij Autobuild-Date(master): Tue Sep 25 00:48:43 CEST 2012 on sn-devel-104 --- source4/scripting/python/samba/netcmd/domain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py index 2e8d7c965d..4c76f0b731 100644 --- a/source4/scripting/python/samba/netcmd/domain.py +++ b/source4/scripting/python/samba/netcmd/domain.py @@ -265,10 +265,10 @@ class cmd_domain_provision(Command): creds.set_kerberos_state(DONT_USE_KERBEROS) - if (dns_forwarder is None and self._get_nameserver_ip() or dns_forwarder): - suggested_forwarder = True + if dns_forwarder is not None: + suggested_forwarder = dns_forwarder else: - suggested_forwarder = False + suggested_forwarder = self._get_nameserver_ip() if len(self.raw_argv) == 1: interactive = True -- cgit