when dumping the model to a rundeck supported xmll file, the tags attribute will contain a comma separate list of tag names with trailing space. This is difficult for search purposes as reported from this post:
http://groups.google.com/group/controltier/t/229a4735928480fc
Applied fix that removes space(s)
commited 2304
Charles-Scotts-DTO-MacBook-Pro:commands chuck$ svn diff generate-rundeck-resources.xml
Index: generate-rundeck-resources.xml
===================================================================
--- generate-rundeck-resources.xml (revision 2303)
+++ generate-rundeck-resources.xml (working copy)
@@ -28,7 +28,13 @@
<typerestriction typeName="Node"/>
</entityquery>
<sequential>
- <propertyregex property="tags" override="true" input="@{default.selectedResourceTags}" regexp="\[(.*)\]" select="\1"/>
+ <propertyregex property="tags.spaces" override="true" input="@{default.selectedResourceTags}" regexp="\[(.*)\]" select="\1"/>
+ <loadresource property="tags">
+ <string>${tags.spaces}</string>
+ <filterchain>
+ <deletecharacters chars=" "/>
+ </filterchain>
+ </loadresource>
<echo append="true" file="${opts.rundeckresourcesfile}"><node name="@{default.name}" type="@{default.type}" description="@{default.description}" tags="${tags}" hostname="@{default.hostname}" osArch="@{default.osArch}" osFamily="@{default.osFamily}" osName="@{default.osName}" osVersion="@{default.osVersion}" username="@{default.ctlUsername}" editUrl="" remoteUrl=""/>${line.separator}</echo>
</sequential>
</apply-macro>
Charles-Scotts-DTO-MacBook-Pro:commands chuck$ svn commit -m 'fixed 3420454 bug where trailing slash is introduced into dumped rundeck resource xml' generate-rundeck-resources.xml
Sending generate-rundeck-resources.xml
Transmitting file data .
Committed revision 2304.