Skip to content

Commit 84f7118

Browse files
Bugfix/601 copy lib member 1.5.0 (#641)
* Modified if statement to use -X option * Changelog fragment for PR 641 Signed-off-by: ddimatos <[email protected]> --------- Signed-off-by: ddimatos <[email protected]> Co-authored-by: ddimatos <[email protected]>
1 parent b902742 commit 84f7118

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bugfixes:
2+
- zos_copy - fixes a bug where copying a member from a loadlib to another
3+
loadlib fails. (https://github.com/ansible-collections/ibm_zos_core/pull/640)

plugins/modules/zos_copy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ def copy_to_member(
14311431
# both program object members and data members. This can be
14321432
# resolved by copying the program object with a "-X" flag.
14331433
# *****************************************************************
1434-
if "FSUM8976" in err and "EDC5091I" in err:
1434+
if ("FSUM8976" in err and "EDC5091I" in err) or ("FSUM8976" in out and "EDC5091I" in out):
14351435
opts["options"] = "-X"
14361436
response = datasets._copy(src, dest, None, **opts)
14371437
rc, out, err = response.rc, response.stdout_response, response.stderr_response

0 commit comments

Comments
 (0)