-
-
Notifications
You must be signed in to change notification settings - Fork 750
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
[st2client] Updated ActionRunCommand to enable specifying multiple array type value in the action parameter #3670
Conversation
multiple array type value in the action parameter
Thanks and nice work! Can you please also open corresponding st2docs PR? |
'param_object=hoge=1,fuga=2', | ||
'param_boolean=False', | ||
'param_array=foo,bar,baz', | ||
'param_array_of_dicts=foo:1,bar:2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does it work if you want to specify multiple objects for an array?
Would something like that work: param_array_of_dicts=foo:1,bar:2,aram_array_of_dicts=foo:3,bar:4
.
If yes, let's please add a test case or it and also document it.
Thank you for your review and merging. It takes time because I've been offline until the end of this week, sorry. |
This is the change for #3646. The main points of this PR are
transform_array
which is the internal method to parse the argument ofarray
type, to be able to parse dict data when user declared that type parameter._get_action_parameters_from_args
to accept multiple declaration of same argument.Thank you.