summaryrefslogtreecommitdiff
path: root/source4/scripting/libjs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-15 11:10:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:23:08 -0500
commit94d99612b9093ca83da3b6b66f875915eeabb389 (patch)
tree17aad583cb4a7bfc7f2ee384f680b7264e035120 /source4/scripting/libjs
parent2bb9fa28754b8575c5926646c1a6221475d24dcc (diff)
downloadsamba-94d99612b9093ca83da3b6b66f875915eeabb389.tar.gz
samba-94d99612b9093ca83da3b6b66f875915eeabb389.tar.bz2
samba-94d99612b9093ca83da3b6b66f875915eeabb389.zip
r8488: after discussions with simo, moved to a full OO interface, so you don't need to keep
a 'db' variable around. The ldb object knows what it is connected to. Added a simple ldb testsuite in testprogs/ldb.js (This used to be commit cf35818648b5b649d0cd25f115a04b7b5b5311aa)
Diffstat (limited to 'source4/scripting/libjs')
-rw-r--r--source4/scripting/libjs/provision.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js
index d4551945d1..bf39bcb992 100644
--- a/source4/scripting/libjs/provision.js
+++ b/source4/scripting/libjs/provision.js
@@ -131,10 +131,10 @@ function setup_ldb(ldif, dbname, subobj)
data = data + extra;
data = substitute_var(data, subobj);
- var db = ldb.connect(dbfile);
- assert(db != undefined);
+ var ok = ldb.connect(dbfile);
+ assert(ok);
- ok = ldb.add(db, data);
+ ok = ldb.add(data);
assert(ok);
}