diff options
-rw-r--r-- | source4/scripting/python/samba/provision.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index 10daf1b2b9..a5b3e8322f 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -647,7 +647,8 @@ def setup_templatesdb(path, setup_path, session_info, credentials, lp): # Wipes the database try: templates_ldb.erase() - except LdbError: + # This should be 'except LdbError', but on a re-provision the assert in ldb.erase fires, and we need to catch that too + except: os.unlink(path) templates_ldb.load_ldif_file_add(setup_path("provision_templates_init.ldif")) |