Menu

#752 generate-rundeck-resources generatestag list with space

3.6.1
open
5
2011-10-07
2011-10-07
Chuck Scott
No

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

Discussion

  • Chuck Scott

    Chuck Scott - 2011-10-07
    • milestone: --> 3.6.1
    • assigned_to: nobody --> connary_scott
     
  • Chuck Scott

    Chuck Scott - 2011-10-07

    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}">&lt;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=""/&gt;${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.

     

Log in to post a comment.