-
Notifications
You must be signed in to change notification settings - Fork 45
[Role][1625]simple_role_to_get_job_status #2386
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
base: dev
Are you sure you want to change the base?
Conversation
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.
Nice simple role. One minor typo in the readme. A question: should you mention the role in the changelog, or not, since it is a role, not main code?
fernandofloresg
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.
requested few changs
| if "AC" in status_raw: | ||
| # the job is active | ||
| ret_code["msg"] = None | ||
| ret_code["msg_code"] = None |
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.
if this is not set, will it still be returned as None or not returned at all ?
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.
Maybe it would make sense to set them as none at the start of the function
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.
It returns as None, but right better to be safe
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.
Here we cover that case of been None
Co-authored-by: Fernando Flores <[email protected]>
Co-authored-by: Fernando Flores <[email protected]>


SUMMARY
Create a role that execute zos_job_query to parsing the response to return job_status and if is running or not as boolean value. Fixes #1625
ISSUE TYPE
COMPONENT NAME
Role that get first value of zos_job_query expecting to be the job_id set by the user.
Delete unnecessary parsing on zos_job_query that remove the current estatus of the job.
Also adding test method for roles on pytest.