-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use defaults for optional parameter values, and expand to blank value when missing #352
Comments
If you are expecting defaulting behavior for options, then you have to set the default value for the option and mark it as "Required". If it is not required (optional), then Rundeck won't automatically include the defaulted value for it. |
Sorry I got confused on this one, the issue I was facing was that a non-optional parameter, with no default, cannot be referenced in the command line. I guess thats obvious because it doesn't exist but I was hoping for a no value to be passed so I could test via -z in my script. What I actually get is an invalid substitution error. So if there is an optional parameter with no default, it means you can't pass it to a script - you need to test for it somehow in the command line arguments for the script. I have now got a work around for it:
|
You can try using the other sytanxes:
|
some discussion on the mailing list: https://groups.google.com/forum/?fromgroups=#!topic/rundeck-discuss/-Wj9dUQxUAM |
Verified. |
Parameters that are optional, are not having their values passed through to bash, command.
Tested on 1.5GA and 1.5.1 snapshot 209.
This one is problematic.
The text was updated successfully, but these errors were encountered: