#545 ✓resolved
Charles Scott

rundeck option cannot take integer value

Reported by Charles Scott | March 16th, 2012 @ 02:17 PM | in Rundeck 1.4.3 (closed)

  • Issue Type: Bug/Feature/Improvement/Documentation (pick one)
  • Rundeck version: (enter version here)

Issue:

The following option definition in a simple rundeck jobdef:

    <option required="true" name="port" enforcedvalues="true" values="3800" value="3800">
      <description>username for the target database</description>
    </option>

does not work. To work around this problem, I had to place a non numeric character somewhere in the value for the values/value attributes. In this case, I simply placed a whitespace character in front of the integer:

    <option required="true" name="port" enforcedvalues="true" values=" 3800" value=" 3800">
      <description>username for the target database</description>
    </option>

Reproduce: (Enter steps to reproduce bug here.)

Define any job with above option that contains a pure integer value.

The output will result in:

[rundeck@rundeckrk1v ~]$ rd-jobs load -f /tmp/deployPromoAppOwnerAppSettings.xml Error: Failed request to load jobs: groovy.lang.MissingMethodException: No signature of method: java.lang.Integer.split() is applicable for argument types: (java.lang.String) values: [,]
Possible solutions: split(groovy.lang.Closure), plus(java.lang.String), wait(), wait(long), sprintf(java.lang.String, [Ljava.lang.Object;), sprintf(java.lang.String, java.lang.Object)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues

Shared Ticket Bins

People watching this ticket

Tags

Pages