diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/netcmd/domain.py | 6 |
1 files 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 |