Skip to content

Commit 8bc67a4

Browse files
[zos backup restore]Added Return Values in documentation (#2049)
* added documenttaion for return in successfull cases * added return in documentation for failure case * added fragments #2037 * typo error * remoded failure case * updated doc * Update 2049-zos_backup_restore-added-return-values-in-doc.yml --------- Co-authored-by: Fernando Flores <[email protected]>
1 parent 707de12 commit 8bc67a4

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
trivial:
2+
- zos_backup_restore - Updated documentation on zos_backup_restore to notify about return
3+
values of Backup and restore operation.
4+
(https://github.com/ansible-collections/ibm_zos_core/pull/2049).

plugins/modules/zos_backup_restore.py

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@
227227
documentation to configure the required security classes.
228228
"""
229229

230-
RETURN = r""""""
231-
232230
EXAMPLES = r"""
233231
- name: Backup all data sets matching the pattern USER.** to data set MY.BACKUP.DZP
234232
zos_backup_restore:
@@ -351,6 +349,28 @@
351349
sms_storage_class: DB2SMS10
352350
sms_management_class: DB2SMS10
353351
"""
352+
RETURN = r"""
353+
changed:
354+
description:
355+
- Indicates if the operation made changes.
356+
- C(true) when backup/restore was successful, C(false) otherwise.
357+
returned: always
358+
type: bool
359+
sample: true
360+
backup_name:
361+
description:
362+
- The USS file name or data set name that was used as a backup.
363+
- Matches the I(backup_name) parameter provided as input.
364+
returned: always
365+
type: str
366+
sample: "/u/oeusr03/my_backup.dzp"
367+
message:
368+
description:
369+
- Returns any important messages about the modules execution, if any.
370+
returned: always
371+
type: str
372+
sample: ""
373+
"""
354374

355375
import traceback
356376
from os import path

0 commit comments

Comments
 (0)