-
-
Notifications
You must be signed in to change notification settings - Fork 746
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
Shell script action not serializing array properly. #4804
Labels
Comments
I'm working on this issue and am close to come up with a PR or maybe some implementation details to be discussed soon. |
@kingsleyadam the PR is there. I expect some feedback from the more experienced developers and maybe a bit of ping-pong but we should have the fix soon. And congratulations - you found a bug that is bigger than it actually seemed to be! |
Thank you @winem! |
arm4b
pushed a commit
that referenced
this issue
Apr 8, 2020
…eters #4804 Handle action parameters of type array correctly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SUMMARY
According to the documentation (https://docs.stackstorm.com/actions.html#update-argument-parsing-in-the-script), arrays should be passed to bash script actions as a comma-delimited string.
But it's coming through as a python list serialized into a string.
[u'foo', u'bar', u'baz']
STACKSTORM VERSION
Paste the output of
st2 --version
:OS, environment, install method
Post what OS you are running this on, along with any other relevant information.
Ubuntu 16.04 LTS installed via apt packaging.
Steps to reproduce the problem
Example Action YAML File
Example Action Bash Script
Invoking Action
Expected Results
What did you expect to happen when running the steps above?
Given the above bash script, I'd expect
Actual Results
What happened? What output did you get?
Instead I'm getting
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: