Skip to content

Commit

Permalink
Fixed bug caused by refactoring of AppdefEntityID
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer Hickey committed Dec 19, 2009
1 parent 71160d1 commit 85cac1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hqu/hqapi1/app/ResourceController.groovy
@@ -1,5 +1,6 @@
import org.hyperic.hq.hqapi1.ErrorCode
import org.hyperic.hq.appdef.shared.AppdefEntityID
import org.hyperic.hq.appdef.shared.AppdefUtil;
import org.hyperic.hq.authz.shared.AuthzConstants
import org.hyperic.hq.authz.shared.PermissionException
import org.hyperic.hq.authz.shared.ResourceEdgeCreateException
Expand Down Expand Up @@ -890,7 +891,7 @@ class ResourceController extends ApiController {
resourceFrom = getResource(xmlResource.'@id'?.toInteger())

if (resourceFrom) {
parent = new AppdefEntityID(resourceFrom)
parent = AppdefUtil.newAppdefEntityId(resourceFrom)
} else {
return getFailureXML(ErrorCode.OBJECT_NOT_FOUND,
"Unable to find resource with id = " +
Expand All @@ -900,7 +901,7 @@ class ResourceController extends ApiController {
xmlResourceTo['Resource'].each {
resourceTo = getResource(it.'@id'?.toInteger())
if (resourceTo) {
children << new AppdefEntityID(resourceTo)
children << AppdefUtil.newAppdefEntityId(resourceTo)
} else {
return getFailureXML(ErrorCode.OBJECT_NOT_FOUND,
"Unable to find resource with id = " +
Expand Down

0 comments on commit 85cac1d

Please sign in to comment.