summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-18 16:49:33 +0000
committerJelmer Vernooij <jelmer@samba.org>2008-12-18 16:49:33 +0000
commit61a2d5c8784a99d4d0419a00375be91a3e9bfc33 (patch)
tree79bb112e42044835bdd3d12c70790de6b2ba1f5c /source4/scripting
parent49d522fe381430799d636305dcc8d2babe16f8ff (diff)
downloadsamba-61a2d5c8784a99d4d0419a00375be91a3e9bfc33.tar.gz
samba-61a2d5c8784a99d4d0419a00375be91a3e9bfc33.tar.bz2
samba-61a2d5c8784a99d4d0419a00375be91a3e9bfc33.zip
Use plain Python C API for registry module, rather than SWIG.
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 95bff74e75..b81f618a48 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -653,7 +653,7 @@ def setup_registry(path, setup_path, session_info, credentials, lp):
reg = registry.Registry()
hive = registry.open_ldb(path, session_info=session_info,
credentials=credentials, lp_ctx=lp)
- reg.mount_hive(hive, "HKEY_LOCAL_MACHINE")
+ reg.mount_hive(hive, registry.HKEY_LOCAL_MACHINE)
provision_reg = setup_path("provision.reg")
assert os.path.exists(provision_reg)
reg.diff_apply(provision_reg)