From eaa427801a3aadd92a467ca6df4d41e37fb74810 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 28 Sep 2006 16:58:28 +0000 Subject: r18977: Seperate these asserts, so we know which fired. Andrew Bartlett (This used to be commit 9b2003618b28cb045e74937803e9aad773781803) --- source4/scripting/libjs/provision.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/scripting/libjs') 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"); -- cgit