-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix/8877/Fixes deletion of src on encoding error (#321)
* Fixed deletion of src on encoding error The code failed while trying to copy files from a directory that needs to be converted, dirs_exist_ok=True should fix that. Additionally, I added two checks to always make sure that we don't accidentally delete source files when they're not temporary. * Added functional test for copying dir to PDS * Workaround for failing cleanup test in zos_copy Quick workaround for a failing test in zos_copy. The test has been fixed more permanently in v1.3.3 of the collection. * Updated directory encoding documentation Co-authored-by: ddimatos <[email protected]>
- Loading branch information
Showing
4 changed files
with
82 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
changelogs/fragments/321-fixes-deleting-src-on-encoding-error.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
bugfixes: | ||
- > | ||
ibm_zos_copy - Fixes a bug such that the module fails when copying | ||
files from a directory needing also to be encoded. The failure would also | ||
delete the `src` which was not desirable behavior. | ||
Fixes deletion of src on encoding error. | ||
(https://github.com/ansible-collections/ibm_zos_core/pull/303). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters