summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-10-03 04:33:02 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-10-05 11:32:50 +0000
commit5218bcf76fb30560741cf5511ff38d7dd93e0f18 (patch)
tree27b68820769f2f617ab365d15dd4a8ae1ca8cc3b
parentfb0add66055f68edc849e29b3609e268b9c7a766 (diff)
downloadsamba-5218bcf76fb30560741cf5511ff38d7dd93e0f18.tar.gz
samba-5218bcf76fb30560741cf5511ff38d7dd93e0f18.tar.bz2
samba-5218bcf76fb30560741cf5511ff38d7dd93e0f18.zip
s4-provision: Reset "debuglevel" after "provision" take place
Otherwise "provision" resets our current debug level and we don't get debug messages we may expect onwards Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Tue Oct 5 11:32:50 UTC 2010 on sn-devel-104
-rw-r--r--source4/scripting/python/samba/provision.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index 96e7aa502f..99e2e13c32 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -1727,13 +1727,15 @@ def provision_become_dc(setup_dir=None,
logger = logging.getLogger("provision")
samba.set_debug_level(debuglevel)
- return provision(setup_dir, logger, system_session(), None,
- smbconf=smbconf, targetdir=targetdir, samdb_fill=FILL_DRS,
- realm=realm, rootdn=rootdn, domaindn=domaindn, schemadn=schemadn,
- configdn=configdn, serverdn=serverdn, domain=domain,
- hostname=hostname, hostip="127.0.0.1", domainsid=domainsid,
- machinepass=machinepass, serverrole="domain controller",
- sitename=sitename)
+ res = provision(setup_dir, logger, system_session(), None,
+ smbconf=smbconf, targetdir=targetdir, samdb_fill=FILL_DRS,
+ realm=realm, rootdn=rootdn, domaindn=domaindn, schemadn=schemadn,
+ configdn=configdn, serverdn=serverdn, domain=domain,
+ hostname=hostname, hostip="127.0.0.1", domainsid=domainsid,
+ machinepass=machinepass, serverrole="domain controller",
+ sitename=sitename)
+ res.lp.set("debuglevel", str(debuglevel))
+ return res
def create_phpldapadmin_config(path, setup_path, ldapi_uri):