-
Notifications
You must be signed in to change notification settings - Fork 24k
copy - fix recursively setting mode and directory_mode with remote_src=True #82658
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
Draft
s-hertel
wants to merge
5
commits into
ansible:devel
Choose a base branch
from
s-hertel:copy-module-fix-recursive-mode
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+83
−110
Conversation
This file contains hidden or 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
89b8ac0
to
9f06c32
Compare
d6895d0
to
b67aa9f
Compare
s-hertel
commented
Feb 15, 2024
s-hertel
commented
Feb 15, 2024
d943040
to
756c695
Compare
Update ``directory_mode`` so it applies to directories in the ``src`` as well as directories created when ``dest`` ends with a trailing slash. Simplify code already handled by module_utils Add test and changelog Fixes ansible#81126
…ait to return for check mode until we know if a change will be made
756c695
to
a8dc375
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
This issue/PR relates to a bug.
has_issue
module
This issue/PR relates to a module.
needs_rebase
https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Fixes #81126
Also simplified the chown_recursive function by walking the path once at most and using the module_utils functions to handle check mode, None values for owner/group/mode/directory_mode, and getting the cumulative changed value.
ISSUE TYPE