Skip to content

[zos backup restore]Added Return Values in documentation #2049

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

Merged
merged 7 commits into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
trivial:
- zos_backup_restore - Updated documentation on zos_backup_restore to notify about return
values of Backup and restore operation
(https://github.com/ansible-collections/ibm_zos_core/pull/2049).
24 changes: 22 additions & 2 deletions plugins/modules/zos_backup_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@
documentation to configure the required security classes.
"""

RETURN = r""""""

EXAMPLES = r"""
- name: Backup all data sets matching the pattern USER.** to data set MY.BACKUP.DZP
zos_backup_restore:
Expand Down Expand Up @@ -351,6 +349,28 @@
sms_storage_class: DB2SMS10
sms_management_class: DB2SMS10
"""
RETURN = r"""
changed:
description:
- Indicates if the operation made changes.
- C(true) when backup/restore was successful, C(false) otherwise.
returned: always
type: bool
sample: true
backup_name:
description:
- The USS file name or data set name that was used as a backup.
- Matches the I(backup_name) parameter provided as input.
returned: always
type: str
sample: "/u/oeusr03/my_backup.dzp"
message:
description:
- Returns any important messages about the modules execution, if any.
returned: always
type: str
sample: ""
"""

import traceback
from os import path
Expand Down