Skip to content

Commit 9140d4d

Browse files
committed
[v1.10.0] [zos_copy] Enhance zos_copy performance when copying multiple PDS members (#1183)
* [v1.9.0] [zos_copy] Enhancement/764/copy members (#1176) * Changed member copy into a bulk call * Modified copy to members * Cleaned code * Removed hardcoded content from zos_copy tests * Added fix for uss files * Added distinction between uss and mvs * Added alias fix * Moved the copy section to below * Modified for seq test * Added fix for copy dest lock * Added msgs for debugging * Added final changes to member copy * Added copy for when seq to pdse * Add changelog * Added a line into docs * Modified doc * Modified doc * Update changelog * Created a new changelog * Corrected typo
1 parent 3b78c27 commit 9140d4d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
minor_changes:
2+
- zos_copy - Improve zos_copy performance when copying multiple members from one PDS/E to another.
3+
(https://github.com/ansible-collections/ibm_zos_core/pull/1183).

plugins/modules/zos_copy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,7 @@ def copy_to_pdse(
17201720
# Copy section
17211721
if src_ds_type == "USS" or self.asa_text or len(src_members) == 1:
17221722
"""
1723-
USS -> MVS : Was kept on member by member basis bc file names longer that 8
1723+
USS -> MVS : Was kept on member by member basis bc file names longer than 8
17241724
characters will throw an error when copying to a PDS, because of the member name
17251725
character limit.
17261726
MVS -> MVS (asa only): This has to be copied on member by member basis bc OPUT

tests/functional/modules/test_zos_copy_func.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,8 +1973,8 @@ def test_copy_dest_lock(ansible_zos_module, ds_type):
19731973
dest_data_set = data_set_2
19741974
try:
19751975
hosts = ansible_zos_module
1976-
hosts.all.zos_data_set(name=data_set_1, state="present", type=ds_type, replace=True)
1977-
hosts.all.zos_data_set(name=data_set_2, state="present", type=ds_type, replace=True)
1976+
hosts.all.zos_data_set(name=DATASET_1, state="present", type=ds_type, replace=True)
1977+
hosts.all.zos_data_set(name=DATASET_2, state="present", type=ds_type, replace=True)
19781978
if ds_type == "PDS" or ds_type == "PDSE":
19791979
hosts.all.zos_data_set(name=src_data_set, state="present", type="member", replace=True)
19801980
hosts.all.zos_data_set(name=dest_data_set, state="present", type="member", replace=True)

0 commit comments

Comments
 (0)