Skip to content
Browse files

Default children & verbose to false if not specified.

  • Loading branch information...
1 parent 018ee97 commit 7edaaa81f520e4d3d0ce4689c6a848045cf0e170 Ryan Morgan committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 hqu/hqapi1/app/ResourceController.groovy
View
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")
- def children = params.getOne("children")?.toBoolean()
- def verbose = params.getOne("verbose")?.toBoolean()
+ boolean children = params.getOne("children", "false")?.toBoolean()
+ boolean verbose = params.getOne("verbose", "false")?.toBoolean()
def resource = null
def failureXml

0 comments on commit 7edaaa8

Please sign in to comment.
Something went wrong with that request. Please try again.