git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cb33a5
)
r18977: Seperate these asserts, so we know which fired.
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 28 Sep 2006 16:58:28 +0000
(16:58 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:20:26 +0000
(14:20 -0500)
Andrew Bartlett
(This used to be commit
9b2003618b28cb045e74937803e9aad773781803
)
source4/scripting/libjs/provision.js
patch
|
blob
|
history
diff --git
a/source4/scripting/libjs/provision.js
b/source4/scripting/libjs/provision.js
index bba3d124ffdea464817957d8befbb401ed893baa..fdc86b1cf74bdd7e70011c3c10247cfff31a94a7 100644
(file)
--- a/
source4/scripting/libjs/provision.js
+++ b/
source4/scripting/libjs/provision.js
@@
-550,7
+550,8
@@
function provision_dns(subobj, message, paths, session_info, credentials)
var attrs = new Array("objectGUID");
res = ldb.search("objectGUID=*", subobj.BASEDN, ldb.SCOPE_BASE, attrs);
- assert(res.length == 1 && res[0].objectGUID != undefined)
+ assert(res.length == 1);
+ assert(res[0].objectGUID != undefined);
subobj.DOMAINGUID = res[0].objectGUID;
subobj.HOSTGUID = searchone(ldb, subobj.BASEDN, "(&(objectClass=computer)(cn=" + subobj.NETBIOSNAME + "))", "objectGUID");