summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-03 13:03:31 +1000
committerAndrew Tridgell <tridge@samba.org>2009-09-03 18:36:09 +1000
commit617bbd913dcd6335cfcee3db6d23e8d3262dd566 (patch)
tree152d12b80c0fa30a3dc64fdb6cd97924656bd7fa /source4/param
parent348824da759a78b06e75d6ab7f8f85aa9912957c (diff)
downloadsamba-617bbd913dcd6335cfcee3db6d23e8d3262dd566.tar.gz
samba-617bbd913dcd6335cfcee3db6d23e8d3262dd566.tar.bz2
samba-617bbd913dcd6335cfcee3db6d23e8d3262dd566.zip
allow setting of the debug level in python from C
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/provision.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/param/provision.c b/source4/param/provision.c
index c8bff59deb..bbc6837a90 100644
--- a/source4/param/provision.c
+++ b/source4/param/provision.c
@@ -34,7 +34,7 @@ NTSTATUS provision_bare(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
struct provision_settings *settings,
struct provision_result *result)
{
- char *configfile;
+ const char *configfile;
PyObject *provision_mod, *provision_dict, *provision_fn, *py_result, *parameters;
DEBUG(0,("Provision for Become-DC test using python\n"));
@@ -123,6 +123,9 @@ NTSTATUS provision_bare(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
PyDict_SetItemString(parameters, "machinepass",
PyString_FromString(settings->machine_password));
+
+ PyDict_SetItemString(parameters, "debuglevel", PyInt_FromLong(DEBUGLEVEL));
+
py_result = PyEval_CallObjectWithKeywords(provision_fn, NULL, parameters);
Py_DECREF(parameters);