From ee0012de1af1a3899856bcdb80033d1a82d5b174 Mon Sep 17 00:00:00 2001 From: Ricky Nance Date: Wed, 26 Sep 2012 17:24:40 -0700 Subject: samba-tool domain provision: DNS forwarder default Provision would break with an exception if there was no value given for the DNS forwarder, this simply sets a default to "none". Signed-off-by: Jelmer Vernooij Autobuild-User(master): Jelmer Vernooij Autobuild-Date(master): Thu Sep 27 04:35:33 CEST 2012 on sn-devel-104 --- source4/scripting/python/samba/netcmd/domain.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4') diff --git a/source4/scripting/python/samba/netcmd/domain.py b/source4/scripting/python/samba/netcmd/domain.py index 43e92599fe..ba4165ac06 100644 --- a/source4/scripting/python/samba/netcmd/domain.py +++ b/source4/scripting/python/samba/netcmd/domain.py @@ -269,6 +269,8 @@ class cmd_domain_provision(Command): suggested_forwarder = dns_forwarder else: suggested_forwarder = self._get_nameserver_ip() + if suggested_forwarder is None: + suggested_forwarder = "none" if len(self.raw_argv) == 1: interactive = True -- cgit