-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
PermissionError in ansible.builtin.find exits too early #82027
Comments
ansibot
added
bug
This issue/PR relates to a bug.
needs_triage
Needs a first human triage before being processed.
affects_2.14
module
This issue/PR relates to a module.
labels
Oct 19, 2023
Files identified in the description: If these files are incorrect, please update the |
mattclay
added
P3
Priority 3 - Approved, No Time Limitation
needs_verified
This issue needs to be verified/reproduced by maintainer
and removed
needs_triage
Needs a first human triage before being processed.
labels
Oct 19, 2023
Akasurde
added a commit
to Akasurde/ansible
that referenced
this issue
Nov 24, 2023
* Log and skip permission errors on files and directories Fixes: ansible#82027 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde
added
verified
This issue has been verified/reproduced by maintainer
and removed
needs_verified
This issue needs to be verified/reproduced by maintainer
labels
Nov 24, 2023
Akasurde
added a commit
to Akasurde/ansible
that referenced
this issue
Dec 1, 2023
* Log and skip permission errors on files and directories Fixes: ansible#82027 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde
added a commit
to Akasurde/ansible
that referenced
this issue
Jan 8, 2024
* Log and skip permission errors on files and directories Fixes: ansible#82027 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde
added a commit
to Akasurde/ansible
that referenced
this issue
Jan 23, 2024
* Log and skip permission errors on files and directories Fixes: ansible#82027 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde
added a commit
that referenced
this issue
Jan 23, 2024
* Log and skip permission errors on files and directories Fixes: #82027 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde
added a commit
to Akasurde/ansible
that referenced
this issue
Mar 21, 2024
* Log and skip permission errors on files and directories Fixes: ansible#82027 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit f73d72e)
Akasurde
added a commit
to Akasurde/ansible
that referenced
this issue
Mar 21, 2024
* Log and skip permission errors on files and directories Fixes: ansible#82027 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit f73d72e) Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
sivel
pushed a commit
that referenced
this issue
Apr 10, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Summary
when i execute the following find command:
ansible all -m ansible.builtin.find -a "paths=/ patterns='some-file-*.jar' recurse=true"
the result states these warnings:
it is absolutely correct, that ansible can't access the mentioned folder but the second warning causes ansible to stop the find process for the whole
/
and miss the files we are looking for.i did some digging and found an ugly work around.
i added
after Line 522 in the
except
block inmodules/find.py
but that doesn't seem to be a proper solutionIssue Type
Bug Report
Component Name
find
Ansible Version
Configuration
OS / Environment
Fedora 38
Steps to Reproduce
Expected Results
i expected to find all instances of
some-file-*.jar
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: