Skip to content

Commit

Permalink
Enable custom properties to be set via the API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Morgan committed Oct 8, 2009
1 parent e2eaf0f commit 622d565
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hqu/hqapi1/app/ResourceController.groovy
Expand Up @@ -555,10 +555,9 @@ class ResourceController extends ApiController {
}
}

// TODO: Support cprops?
//xmlResource['ResourceProperty'].each {
// config[it.'@key'] = it.'@value'
//}
xmlResource['ResourceProperty'].each {
config[it.'@key'] = it.'@value'
}

if (!name) {
return getFailureXML(ErrorCode.INVALID_PARAMETERS,
Expand Down

0 comments on commit 622d565

Please sign in to comment.