Skip to content

Commit d44bcf7

Browse files
Updating doc changes
1 parent 0380841 commit d44bcf7

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

plugins/modules/zos_started_task.py

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -305,31 +305,31 @@
305305
state:
306306
description:
307307
- The final state of the started task, after execution.
308-
returned: changed
308+
returned: success
309309
type: str
310310
sample: S SAMPLE
311311
stderr:
312312
description:
313313
- The STDERR from the command, may be empty.
314-
returned: changed
314+
returned: failure
315315
type: str
316316
sample: An error has occurred.
317317
stderr_lines:
318318
description:
319319
- List of strings containing individual lines from STDERR.
320-
returned: changed
320+
returned: failure
321321
type: list
322322
sample: ["An error has occurred"]
323323
stdout:
324324
description:
325325
- The STDOUT from the command, may be empty.
326-
returned: changed
326+
returned: success
327327
type: str
328328
sample: ISF031I CONSOLE OMVS0000 ACTIVATED.
329329
stdout_lines:
330330
description:
331331
- List of strings containing individual lines from STDOUT.
332-
returned: changed
332+
returned: success
333333
type: list
334334
sample: ["Allocation to SYSEXEC completed."]
335335
tasks:
@@ -503,9 +503,9 @@
503503
sample: SYSTEM
504504
verbose_output:
505505
description:
506-
- If C(verbose=true), the system log related to the started task executed state will be shown.
507-
returned: changed
508-
type: list
506+
- If C(verbose=true), the system logs related to the started task executed state will be shown.
507+
returned: success
508+
type: str
509509
sample: NC0000000 ZOSMACHINE 25240 12:40:30.15 OMVS0000 00000210....
510510
"""
511511

@@ -534,10 +534,12 @@ def execute_command(operator_cmd, started_task_name, execute_display_before=Fals
534534
----------
535535
operator_cmd : str
536536
Operator command.
537+
started_task_name : str
538+
Name of the started task.
539+
execute_display_before: bool
540+
Indicates whether display command need to be executed before actual command or not.
537541
timeout_s : int
538542
Timeout to wait for the command execution, measured in centiseconds.
539-
*args : dict
540-
Arguments for the command.
541543
**kwargs : dict
542544
More arguments for the command.
543545
@@ -566,8 +568,8 @@ def execute_display_command(started_task_name, timeout=0):
566568
Parameters
567569
----------
568570
started_task_name : str
569-
The name of started task.
570-
timeout_s : int
571+
Name of the started task.
572+
timeout : int
571573
Timeout to wait for the command execution, measured in centiseconds.
572574
573575
Returns
@@ -588,7 +590,7 @@ def validate_and_prepare_start_command(module):
588590
589591
Parameters
590592
----------
591-
start_parms : dict
593+
module : dict
592594
The started task start command parameters.
593595
594596
Returns
@@ -711,7 +713,7 @@ def prepare_display_command(module):
711713
712714
Parameters
713715
----------
714-
display_parms : dict
716+
module : dict
715717
The started task display command parameters.
716718
717719
Returns
@@ -743,7 +745,7 @@ def prepare_stop_command(module):
743745
744746
Parameters
745747
----------
746-
stop_parms : dict
748+
module : dict
747749
The started task stop command parameters.
748750
749751
Returns
@@ -778,7 +780,7 @@ def prepare_modify_command(module):
778780
779781
Parameters
780782
----------
781-
modify_parms : dict
783+
module : dict
782784
The started task modify command parameters.
783785
784786
Returns
@@ -817,7 +819,7 @@ def prepare_cancel_command(module):
817819
818820
Parameters
819821
----------
820-
cancel_parms : dict
822+
module : dict
821823
The started task modify command parameters.
822824
823825
Returns
@@ -996,7 +998,7 @@ def extract_keys(stdout):
996998
elif current_task:
997999
data_space = {}
9981000
for match in kv_pattern.finditer(line):
999-
dsp_keys = ['dataspace_name', 'data_space_address_entry']
1001+
dsp_keys = ['data_space_name', 'data_space_address_entry']
10001002
key, value = match.groups()
10011003
if key in keys:
10021004
key = keys[key]
@@ -1050,11 +1052,13 @@ def fetch_logs(command, timeout):
10501052
----------
10511053
command : string
10521054
The comand which need to be checked in system logs
1055+
timeout: int
1056+
The timeout value passed in input.
10531057
10541058
Returns
10551059
-------
1056-
list
1057-
The list of logs from SYSLOG
1060+
str
1061+
Logs from SYSLOG
10581062
"""
10591063
time_mins = timeout // 60 + 1
10601064
option = '-t' + str(time_mins)

tests/functional/modules/test_zos_started_task_func.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,6 @@ def test_force_and_start_with_icsf_task(ansible_zos_module):
778778
task = "ICSF"
779779
)
780780
for result in display_results.contacted.values():
781-
print(result)
782781
assert result.get("changed") is True
783782
assert result.get("rc") == 0
784783
assert result.get("stderr") == ""

0 commit comments

Comments
 (0)