Skip to content

Commit

Permalink
Add toString for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Oct 7, 2011
1 parent fc324a5 commit 26367da
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion rundeckapp/src/groovy/BaseNodeFilters.groovy
Expand Up @@ -69,4 +69,23 @@ public class BaseNodeFilters {

static filterKeys = [hostname: '', tags: 'Tags', 'os-name': 'OsName', 'os-family': 'OsFamily',
'os-arch': 'OsArch', 'os-version': 'OsVersion','name':'Name']
}

public String toString ( ) {
return "BaseNodeFilters{" +
(nodeInclude?"nodeInclude='" + nodeInclude + '\'':'') +
(nodeExclude?", nodeExclude='" + nodeExclude + '\'':'') +
(nodeIncludeName?", nodeIncludeName='" + nodeIncludeName + '\'' : '') +
(nodeExcludeName?", nodeExcludeName='" + nodeExcludeName + '\'' : '') +
(nodeIncludeTags?", nodeIncludeTags='" + nodeIncludeTags + '\'' : '') +
(nodeExcludeTags?", nodeExcludeTags='" + nodeExcludeTags + '\'' : '') +
(nodeIncludeOsName?", nodeIncludeOsName='" + nodeIncludeOsName + '\'' : '') +
(nodeExcludeOsName?", nodeExcludeOsName='" + nodeExcludeOsName + '\'' : '') +
(nodeIncludeOsFamily?", nodeIncludeOsFamily='" + nodeIncludeOsFamily + '\'' : '') +
(nodeExcludeOsFamily?", nodeExcludeOsFamily='" + nodeExcludeOsFamily + '\'' : '') +
(nodeIncludeOsArch?", nodeIncludeOsArch='" + nodeIncludeOsArch + '\'' : '') +
(nodeExcludeOsArch?", nodeExcludeOsArch='" + nodeExcludeOsArch + '\'' : '') +
(nodeIncludeOsVersion?", nodeIncludeOsVersion='" + nodeIncludeOsVersion + '\'' : '') +
(nodeExcludeOsVersion?", nodeExcludeOsVersion='" + nodeExcludeOsVersion + '\'' : '') +
(nodeExcludePrecedence?", nodeExcludePrecedence=" + nodeExcludePrecedence : '') +
'}' ;
}}

0 comments on commit 26367da

Please sign in to comment.