Skip to content

Commit 3ec9123

Browse files
authored
Update the module with the correct examples and descriptions (#648)
* Update the module with the correct examples and descriptions Signed-off-by: ddimatos <[email protected]> * Add changelog fragment Signed-off-by: ddimatos <[email protected]> --------- Signed-off-by: ddimatos <[email protected]>
1 parent 27f8d35 commit 3ec9123

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bugfixes:
2+
- zos_operator - fixed incorrect example descriptions and updated the doc to
3+
highlight the deprecated option `wait`.
4+
(https://github.com/ansible-collections/ibm_zos_core/pull/648)

plugins/modules/zos_operator.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,24 @@
5757
default: 1
5858
wait:
5959
description:
60-
- Configuring wait used by the L(zos_operator,./zos_operator.html) module has been
61-
deprecated and will be removed in ibm.ibm_zos_core collection.
60+
- Configuring wait used by the L(zos_operator,./zos_operator.html) module
61+
has been deprecated and will be removed in a future ibm.ibm_zos_core
62+
collection.
6263
- Setting this option will yield no change, it is deprecated.
64+
- Review option I(wait_time_s) to instruct operator commands to wait.
6365
type: bool
6466
required: false
6567
default: true
6668
"""
6769

6870
EXAMPLES = r"""
69-
- name: Execute an operator command to show active jobs
71+
- name: Execute an operator command to show device status and allocation
7072
zos_operator:
71-
cmd: 'd u,all'
73+
cmd: 'd u'
7274
73-
- name: Execute an operator command to show active jobs with verbose information
75+
- name: Execute an operator command to show device status and allocation with verbose information
7476
zos_operator:
75-
cmd: 'd u,all'
77+
cmd: 'd u'
7678
verbose: true
7779
7880
- name: Execute an operator command to purge all job logs (requires escaping)
@@ -81,12 +83,12 @@
8183
8284
- name: Execute operator command to show jobs, waiting up to 5 seconds for response
8385
zos_operator:
84-
cmd: 'd u,all'
86+
cmd: 'd a,all'
8587
wait_time_s: 5
8688
8789
- name: Execute operator command to show jobs, always waiting 7 seconds for response
8890
zos_operator:
89-
cmd: 'd u,all'
91+
cmd: 'd a,all'
9092
wait_time_s: 7
9193
"""
9294

0 commit comments

Comments
 (0)