summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/netcmd/domain.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py
index 5f34deb3c0..7d2421b246 100644
--- a/source4/scripting/python/samba/netcmd/domain.py
+++ b/source4/scripting/python/samba/netcmd/domain.py
@@ -265,7 +265,10 @@ class cmd_domain_provision(Command):
creds.set_kerberos_state(DONT_USE_KERBEROS)
- suggested_forwarder = dns_forwarder is None and self._get_nameserver_ip() or dns_forwarder
+ if (dns_forwarder is None and self._get_nameserver_ip() or dns_forwarder):
+ suggested_forwarder = True
+ else:
+ suggested_forwarder = False
if len(self.raw_argv) == 1:
interactive = True