Skip to content

Commit

Permalink
zos_gather_facts - add sample output to RETURN docstring (#722)
Browse files Browse the repository at this point in the history
* zos_gather_facts - add sample output to RETURN docstring

Signed-off-by: Ketan Kelkar <[email protected]>

* add changelog fragment

Signed-off-by: Ketan Kelkar <[email protected]>

* zos_gather_facts RETURN docstring - add sample sysplex_name and lpar_name values

Signed-off-by: Ketan Kelkar <[email protected]>

* Update generated module doc

Signed-off-by: ddimatos <[email protected]>

---------

Signed-off-by: Ketan Kelkar <[email protected]>
Signed-off-by: ddimatos <[email protected]>
Co-authored-by: ddimatos <[email protected]>
  • Loading branch information
ketankelkar and ddimatos authored Apr 7, 2023
1 parent 1123f97 commit 1984769
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- zos_gather_facts - add sample output to RETURN docstring. (https://github.com/ansible-collections/ibm_zos_core/pull/722)
24 changes: 24 additions & 0 deletions docs/source/modules/zos_gather_facts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,28 @@ ansible_facts

| **returned**: when collected
| **type**: dict
| **sample**:
.. code-block:: json
[
{
"ansible_facts": {
"arch_level": "2",
"hw_name": "SYSZD6",
"ipl_volume": "RES820",
"lpar_name": "SVLLAB01",
"primary_jes": "JES2",
"product_mod_level": "00",
"product_name": "z/OS",
"product_owner": "IBM CORP",
"product_release": "05",
"product_version": "02",
"smf_name": "3090",
"sys_name": "EC33018A",
"sysplex_name": "SVPLEX1",
"vm_name": "EC33018A"
}
}
]
19 changes: 19 additions & 0 deletions plugins/modules/zos_gather_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,25 @@
description: Collection of facts that are gathered from the z/OS systems.
returned: when collected
type: dict
sample:
[
"ansible_facts": {
"arch_level": "2",
"hw_name": "SYSZD6",
"ipl_volume": "RES820",
"lpar_name": "SVLLAB01",
"primary_jes": "JES2",
"product_mod_level": "00",
"product_name": "z/OS",
"product_owner": "IBM CORP",
"product_release": "05",
"product_version": "02",
"smf_name": "3090",
"sys_name": "EC33018A",
"sysplex_name": "SVPLEX1",
"vm_name": "EC33018A"
}
]
"""

from fnmatch import fnmatch
Expand Down

0 comments on commit 1984769

Please sign in to comment.