Skip to content

Commit

Permalink
Filter input value arrays to remove empty strings, in filterOptParams
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Mar 2, 2011
1 parent 95f4a55 commit 5ba0176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rundeckapp/grails-app/services/ExecutionService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1388,9 +1388,9 @@ class ExecutionService implements ApplicationContextAware, Executor{
if (matcher.matches()) {
def optname = matcher.group(1)
if(val instanceof Collection){
result[optname] = new ArrayList(val)
result[optname] = new ArrayList(val).grep{it}
}else if (val instanceof String[]){
result[optname] = new ArrayList(Arrays.asList(val))
result[optname] = new ArrayList(Arrays.asList(val)).grep{it}
}else if(val instanceof String){
result[optname]=val
}else{
Expand Down

0 comments on commit 5ba0176

Please sign in to comment.