From e3834df7054175108bc598922958fbd2c986e2a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Marcel=20Guti=C3=A9rrez=20Ben=C3=ADtez?= Date: Thu, 22 Aug 2024 10:43:51 -0600 Subject: [PATCH] Fix comments --- .../fragments/1632-Validate_to_restore_keep_orginial_hlq.yml | 4 ++-- plugins/modules/zos_backup_restore.py | 3 +-- tests/functional/modules/test_zos_backup_restore.py | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/changelogs/fragments/1632-Validate_to_restore_keep_orginial_hlq.yml b/changelogs/fragments/1632-Validate_to_restore_keep_orginial_hlq.yml index 3193d972e..48c46be4f 100644 --- a/changelogs/fragments/1632-Validate_to_restore_keep_orginial_hlq.yml +++ b/changelogs/fragments/1632-Validate_to_restore_keep_orginial_hlq.yml @@ -1,5 +1,5 @@ minor_changes: - zos_backup_restore - Redefines the default behavior of module option hlq. - The original high level qualifiers in a backup will be used for a restore - operation if no value is provided in the module option. + When operation=restore and hlq is not provided the original high level + qualifiers in a backup will be used for a restore. (https://github.com/ansible-collections/ibm_zos_core/pull/1632). \ No newline at end of file diff --git a/plugins/modules/zos_backup_restore.py b/plugins/modules/zos_backup_restore.py index f0990941d..00d48a62d 100644 --- a/plugins/modules/zos_backup_restore.py +++ b/plugins/modules/zos_backup_restore.py @@ -191,8 +191,7 @@ required: false tmp_hlq: description: - - Override the default high level qualifier (HLQ) for temporary and backup - data sets. + - Override the default high level qualifier (HLQ) for temporary data sets. - If original HLQ is not available, then the value of C(TMPHLQ) is used. required: false type: str diff --git a/tests/functional/modules/test_zos_backup_restore.py b/tests/functional/modules/test_zos_backup_restore.py index d81e29f13..c40299ed1 100644 --- a/tests/functional/modules/test_zos_backup_restore.py +++ b/tests/functional/modules/test_zos_backup_restore.py @@ -706,7 +706,6 @@ def test_backup_and_restore_a_data_set_with_same_hlq(ansible_zos_module): try: delete_data_set_or_file(hosts, data_set_name) delete_data_set_or_file(hosts, data_set_backup_location) - hosts.all.shell(cmd="dtouch -tseq {0}".format(data_set_name)) hosts.all.shell(cmd="""decho "HELLO WORLD" {0}""".format(data_set_name)) results = hosts.all.zos_backup_restore( operation="backup",