diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-09-28 16:58:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:20:26 -0500 |
commit | eaa427801a3aadd92a467ca6df4d41e37fb74810 (patch) | |
tree | 930ce403dc811e42a067c64d15b74ee685750a91 /source4/scripting | |
parent | 6cb33a54670e8e111781273ffbe45c36ed51e05f (diff) | |
download | samba-eaa427801a3aadd92a467ca6df4d41e37fb74810.tar.gz samba-eaa427801a3aadd92a467ca6df4d41e37fb74810.tar.bz2 samba-eaa427801a3aadd92a467ca6df4d41e37fb74810.zip |
r18977: Seperate these asserts, so we know which fired.
Andrew Bartlett
(This used to be commit 9b2003618b28cb045e74937803e9aad773781803)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/libjs/provision.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js index bba3d124ff..fdc86b1cf7 100644 --- 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"); |