-
Notifications
You must be signed in to change notification settings - Fork 43
[Enabler][2147-2149]update_job_modules_interfaces #2208
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
[Enabler][2147-2149]update_job_modules_interfaces #2208
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.
Minor comment: changelog fragment has ticket 2204 and pull 2204. I'm not sure on ticket number, but the pull request should be 2208.
@@ -1,3 +1,3 @@ | |||
breaking_changes: | |||
- zos_job_query - Return value ``message`` is deprecated in favor of ``msg``. Return value ``steps`` are no longer under `` but is now included under jobs. | |||
- zos_job_query - Return value ``message`` is deprecated in favor of ``msg``. Return value ``steps`` are no longer under ``ret_code`` but is now included under jobs. | |||
(https://github.com/ansible-collections/ibm_zos_core/pull/2204). |
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.
Shouldn't this be ...pull/2208 ?
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.
Is the other changelog, this is form the previous PR of changes of zos_job_query, but I realize I miss one problem
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 small changes for the changelog fragment
- zos_job_output - Interface value ``ddname`` is substitute for ``dd_name``, but ``ddname`` is an alias. Return value ``changed`` is always retun, ``steps`` are no longer under `ret_code` | ||
but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. | ||
(https://github.com/ansible-collections/ibm_zos_core/pull/2208). | ||
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``. |
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.
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``. | |
- zos_job_submit - Option name ``location`` is replaced for ``remote_src`` and now its behavior is defined by a bool value and ``wait_time_s`` is replaced for ``wait_time``. |
but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. | ||
(https://github.com/ansible-collections/ibm_zos_core/pull/2208). | ||
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``. | ||
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node`` |
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.
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node`` | |
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replaced by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node`` |
Co-authored-by: Fernando Flores <[email protected]>
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.
LGTM
@@ -0,0 +1,13 @@ | |||
breaking_changes: | |||
- zos_job_output - Interface value ``ddname`` is substitute for ``dd_name``, but ``ddname`` is an alias. Return value ``changed`` is always retun, ``steps`` are no longer under `ret_code` |
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.
- zos_job_output - Interface value ``ddname`` is substitute for ``dd_name``, but ``ddname`` is an alias. Return value ``changed`` is always retun, ``steps`` are no longer under `ret_code` | |
- zos_job_output - Option ``ddname`` is substituted for ``dd_name``, but retaining ``ddname`` as an alias. Return field ``changed`` is now always returned, ``steps`` is no longer under `ret_code` |
@@ -0,0 +1,13 @@ | |||
breaking_changes: | |||
- zos_job_output - Interface value ``ddname`` is substitute for ``dd_name``, but ``ddname`` is an alias. Return value ``changed`` is always retun, ``steps`` are no longer under `ret_code` | |||
but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. |
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.
but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. | |
but is now included under `jobs`. Return field ``ddnames`` is replaced by ``dds`` and field ``ddname`` under ``ddnames`` is replaced by ``dd_name``. |
- zos_job_output - Interface value ``ddname`` is substitute for ``dd_name``, but ``ddname`` is an alias. Return value ``changed`` is always retun, ``steps`` are no longer under `ret_code` | ||
but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. | ||
(https://github.com/ansible-collections/ibm_zos_core/pull/2208). | ||
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``. |
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.
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``. | |
- zos_job_submit - Option ``location`` is replaced for ``remote_src``, a boolean value and ``wait_time_s`` is replaced for ``wait_time``. |
but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. | ||
(https://github.com/ansible-collections/ibm_zos_core/pull/2208). | ||
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``. | ||
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node`` |
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.
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node`` | |
Return field ``ddnames`` is replaced by ``dds`` and field ``ddname`` under ``ddnames`` is replaced by ``dd_name``. Return fields ``system``, ``subsystem``, ``cpu_time``, ``execution_node`` |
(https://github.com/ansible-collections/ibm_zos_core/pull/2208). | ||
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``. | ||
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node`` | ||
and ``origin node`` is no longer returned. Now all values are retuned under jobs exception for changed. |
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.
and ``origin node`` is no longer returned. Now all values are retuned under jobs exception for changed. | |
and ``origin node`` are no longer returned. Every other field is now always returned under ``jobs``. |
Co-authored-by: Alex Moreno <[email protected]>
Co-authored-by: Fernando Flores <[email protected]>
Co-authored-by: Fernando Flores <[email protected]>
Co-authored-by: Alex Moreno <[email protected]>
Co-authored-by: Alex Moreno <[email protected]>
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.
LGTM!
Co-authored-by: Alex Moreno <[email protected]>
0b07a67
Co-authored-by: Alex Moreno <[email protected]>
Co-authored-by: Alex Moreno <[email protected]>
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.
Looks good to me, thanks for updating this
SUMMARY
Change jobs utilities and interfaces for new 2.0 version.
Fixes #2147 and #2149
ISSUE TYPE
COMPONENT NAME
Create a new flag for not found changes as a dictionary values to ensure change is properly returned.
ADDITIONAL INFORMATION
Add validation for all test cases.