-
-
Notifications
You must be signed in to change notification settings - Fork 751
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
st2 pack install --json outputs non-json text to stdout #4260
Comments
@nmaludy Is this an actual issue meaning are you trying to tool around st2 pack install -j? Or is this just a cosmetic issue? I can try it make all json but I am not sure how "useful" this is? |
@lakshmi-kannan I ran into this when working on Tasks for the StackStorm puppet module. Those tasks call st2 pack install -j. It's expecting JSON output so there it can returning meaningful, structured data to the caller. I just really want the output to contain only JSON data, or only YAML data when requesting those output formats. Then parsing the data from another program is straight forward. Does that make sense? |
@nmaludy Yes. I'll see how can I make everything JSON output there but some of the info returned there assumes a human. So maybe just skipping it if --json is specified is an acceptable change you think? |
Yeah , I think skipping if asking for JSON it YAML is acceptable. |
SUMMARY
When running
st2 pack install --json xxx
there is information printed tostdout
that is not in JSON format, causing integration with external tools that expect JSON to fail.ISSUE TYPE
STACKSTORM VERSION
OS / ENVIRONMENT / INSTALL METHOD
STEPS TO REPRODUCE
EXPECTED RESULTS
Output should only contain JSON on
stdout
(and ideallystderr
)ACTUAL RESULTS
Note the non-JSON text above the JSON output.
The text was updated successfully, but these errors were encountered: