-
-
Notifications
You must be signed in to change notification settings - Fork 782
Fix st2 execution get not printing action ref #4741
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
Fix st2 execution get not printing action ref #4741
Conversation
m4dcoder
left a comment
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.
Minor question about removing liveaction.
| class ActionExecutionGetCommand(ActionRunCommandMixin, ResourceViewCommand): | ||
| display_attributes = ['id', 'action.ref', 'context.user', 'parameters', 'status', | ||
| 'start_timestamp', 'end_timestamp', 'result', 'liveaction'] | ||
| 'start_timestamp', 'end_timestamp', 'result'] |
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.
We don't want liveaction?
|
Also, this change resulted in errors in various unit tests which didn't expect the extra fields. This is why the travis-ci/pr job failed. Please run |
|
Thanks for contribution. It would be great to add a test case for it to avoid such regressions in the future. |
concurrency abstraction which works with either gevent or eventlet.
and supports logging config paths which are relative to st2.conf file directory.
the ProcessSensorContainer class.
script to a method which can be overriden in derived classes.
…es and ?exclude_attributes
?show_secrets=True for admins.
rules API endpoint.
This way we can troubleshoot various "fail to start" issues on CI. Without this change, we have no visibility if service fails to start before the actual service starts writting into it's own log file. Sadly we can't rely on new version of screen which supports -Logfile path.log flag so we need to use screen config per screen window so we can use different log files for different processes.
…_issue fixing subprocess to use system buffer instead of being unbuffered
…pter Don't call eventlet directly inside the st2reactor code
…ule-parameters /v1/rules API endpoint action parameters secrets masking (additional changes on top of StackStorm#4788)
gunicorn if auth.api_url config option was not set. NOTE: This issue would only affect deployments using gunicorn which don't have auth.api_url config option set.
…unicorn_issue Fix a bug with authentication API endpoint returning internal server error under gunicorn if auth.api_url config option was not set
…maludy/st2 into bugfix/4739-st2-cli-action-ref
Kami
left a comment
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.
I verified this works as expected so I will go ahead and merge this into master.
I believe "liveaction" attribute was removed since Nick changed the code to use display_attributes defined on the class and we don't want to include "liveaction" object in st2 execution run and st2 execution get command output.
Thanks again for the contribution.
Fixes #4739
Before:
After: