summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorMatthias Dieter Wallnoefer <mwallnoefer@yahoo.de>2009-03-21 03:07:00 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-03-21 03:07:00 +0100
commit62ab39dde37f5570b336b9db5b4e3c2e4640e877 (patch)
treed9bc96f05bda9362b234476ec9007156c5e971a3 /source4/scripting
parent960b75531530c05fcaaa7400e52f2b688a6e8d88 (diff)
downloadsamba-62ab39dde37f5570b336b9db5b4e3c2e4640e877.tar.gz
samba-62ab39dde37f5570b336b9db5b4e3c2e4640e877.tar.bz2
samba-62ab39dde37f5570b336b9db5b4e3c2e4640e877.zip
s4/provision: Use existing serverrole variable.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/provision.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index d96857661e..896f237bd7 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -1056,7 +1056,7 @@ def provision(setup_dir, message, session_info,
serverrole=serverrole, ldap_backend=ldap_backend,
ldap_backend_type=ldap_backend_type)
- if lp.get("server role") == "domain controller":
+ if serverrole == "domain controller":
if paths.netlogon is None:
message("Existing smb.conf does not have a [netlogon] share, but you are configuring a DC.")
message("Please either remove %s or see the template at %s" %