Permalink
Browse files

Defaults provided. Elvis has left the building.

  • Loading branch information...
Ryan Morgan
Ryan Morgan committed May 18, 2009
1 parent 7edaaa8 commit f45409d35865ac2c4c49f3361f4de2a10bef182f
Showing with 4 additions and 4 deletions.
  1. +4 −4 hqu/hqapi1/app/ResourceController.groovy
@@ -214,8 +214,8 @@ class ResourceController extends ApiController {
def get(params) {
def id = params.getOne("id")?.toInteger()
def platformName = params.getOne("platformName")
- boolean children = params.getOne("children", "false")?.toBoolean()
- boolean verbose = params.getOne("verbose", "false")?.toBoolean()
+ boolean children = params.getOne("children", "false").toBoolean()
+ boolean verbose = params.getOne("verbose", "false").toBoolean()
def resource = null
def failureXml
@@ -248,8 +248,8 @@ class ResourceController extends ApiController {
def find(params) {
def agentId = params.getOne("agentId")?.toInteger()
def prototype = params.getOne("prototype")
- def children = params.getOne("children")?.toBoolean()
- def verbose = params.getOne("verbose")?.toBoolean()
+ def children = params.getOne("children", "false").toBoolean()
+ def verbose = params.getOne("verbose", "false").toBoolean()
def resources = []
def failureXml

0 comments on commit f45409d

Please sign in to comment.