Ensure we set subobj.BACKEND_MOD for the 'partitions only' case.
[samba.git] / source / scripting / libjs / provision.js
index 4cb717bde876bb99c9a7d79d7c66b1e8f9747133..e71498010cfdb419e753c8e37f8cf154311c1d98 100644 (file)
@@ -524,6 +524,10 @@ function provision_become_dc(subobj, message, erase, paths, session_info)
        var ok = provision_fix_subobj(subobj, paths);
        assert(ok);
 
+       if (subobj.BACKEND_MOD == undefined) {
+               subobj.BACKEND_MOD = "repl_meta_data";
+       }
+
        info.subobj = subobj;
        info.message = message;
        info.session_info = session_info;