You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible/modules
Brian Coca 1995b1b6e0
find - set proper default based on use_regex (#73961) (#73965)
When using "use_regex: yes" and setting an excludes: without
specifying a pattern: the existing code passes the file-glob '*' to
the regex matcher.  This results in an internal invalid-regex
exception being thrown.

This maintains the old semantics of a default match-all for pattern:
but switches the default to '.*' when use_regex is specified.

The code made sense as-is before excludes: was added (2.5).  In that
case, it made no sense to set use_regex but *not* set a pattern.
However, with excludes: it now makes sense to only want to exclude a
given regex but not specify a specific matching pattern.

Closes: #50067

* moved change to new location
added changelog

* Update lib/ansible/modules/find.py

Co-authored-by: Ian Wienand <iwienand@redhat.com>
(cherry picked from commit 089d0a0508)

* Fix up bad rebase, nuke duplicate "elements:" lines

Signed-off-by: Rick Elrod <rick@elrod.me>
Co-authored-by: Rick Elrod <rick@elrod.me>
Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
..
__init__.py
add_host.py Backport/2.10/70530 (#71380) 5 years ago
apt.py Fix wrong backup directory var name in apt module (#73840) (#74002) 5 years ago
apt_key.py Documentation: fix modules doc formatting (#72851) 5 years ago
apt_repository.py Documentation: fix modules doc formatting (#72851) 5 years ago
assemble.py Documentation: fix modules doc formatting (#72851) 5 years ago
assert.py Backport/2.10/70530 (#71380) 5 years ago
async_status.py [backport][2.10] Docsbackportapaloosa (#70302) 6 years ago
async_wrapper.py module output is only json objects (#73765) (#73777) 5 years ago
blockinfile.py [stable-2.10] blockinfile - properly insert block when no trailing new line exists (#72350) (#72360) 5 years ago
command.py Documentation: fix formatting (#73186) 5 years ago
copy.py Documentation: fix modules doc formatting (#72851) 5 years ago
cron.py modules: fix documentation formatting (#72737) (#72850) 5 years ago
debconf.py modules: fix documentation formatting (#72737) (#72850) 5 years ago
debug.py Documentation: fix formatting (#73186) 5 years ago
dnf.py [stable-2.10] [dnf] Some fixes around filtering (#72483) (#72500) 5 years ago
dpkg_selections.py starting metadata sunset (#69454) 6 years ago
expect.py Documentation: fix formatting (#73186) 5 years ago
fail.py Backport/2.10/70530 (#71380) 5 years ago
fetch.py modules: fix documentation formatting (#72737) (#72850) 5 years ago
file.py Documentation: fix modules doc formatting (#73037) 5 years ago
find.py find - set proper default based on use_regex (#73961) (#73965) 5 years ago
gather_facts.py Backport/2.10/70530 (#71380) 5 years ago
get_url.py ensure unsafe writes fallback (#70722) (#73144) 5 years ago
getent.py starting metadata sunset (#69454) 6 years ago
git.py git: verify, only use --raw when we need it (#70900) (#73473) 5 years ago
group.py Documentation: fix formatting (#73186) 5 years ago
group_by.py Documentation: fix formatting (#73186) 5 years ago
hostname.py [stable-2.10] hostname - add Almalinux support (#73619) (#73648) 5 years ago
import_playbook.py [stable-2.10] import_playbook - change additional params to deprecation (#72987) (#73015) 5 years ago
import_role.py Backport/2.10/70530 (#71380) 5 years ago
import_tasks.py Backport/2.10/70530 (#71380) 5 years ago
include.py Backport/2.10/70530 (#71380) 5 years ago
include_role.py Backport/2.10/70530 (#71380) 5 years ago
include_tasks.py Backport/2.10/70530 (#71380) 5 years ago
include_vars.py Backport/2.10/70530 (#71380) 5 years ago
iptables.py Documentation: fix modules doc formatting (#72851) 5 years ago
known_hosts.py Backport/2.10/70530 (#71380) 5 years ago
lineinfile.py modules: fix documentation formatting (#72737) (#72850) 5 years ago
meta.py [docs][2.10] Backportapalooza 9 (#71493) 5 years ago
package.py Documentation: fix formatting (#73186) 5 years ago
package_facts.py Documentation: fix formatting (#73186) 5 years ago
pause.py Backport/2.10/70530 (#71380) 5 years ago
ping.py modules: fix documentation formatting (#72737) (#72850) 5 years ago
pip.py starting metadata sunset (#69454) 6 years ago
raw.py Backport/2.10/70530 (#71380) 5 years ago
reboot.py Backport/2.10/70530 (#71380) 5 years ago
replace.py modules: fix documentation formatting (#72737) (#72850) 5 years ago
rpm_key.py Documentation: fix modules doc formatting (#73037) 5 years ago
script.py modules: fix documentation formatting (#72737) (#72850) 5 years ago
service.py modules: fix documentation formatting (#72737) (#72850) 5 years ago
service_facts.py Documentation: fix modules doc formatting (#73037) 5 years ago
set_fact.py Backport/2.10/70530 (#71380) 5 years ago
set_stats.py starting metadata sunset (#69454) 6 years ago
setup.py Fix setup subset (#74022) (#74047) 5 years ago
shell.py Documentation: fix modules doc formatting (#72851) 5 years ago
slurp.py Documentation: fix modules doc formatting (#72851) 5 years ago
stat.py Documentation: fix modules doc formatting (#73037) 5 years ago
subversion.py Documentation: fix modules doc formatting (#73037) 5 years ago
systemd.py [stable-2.10] systemd - do not overwrite unit name when searching (#72985) (#73013) 5 years ago
sysvinit.py starting metadata sunset (#69454) 6 years ago
tempfile.py Documentation: fix modules doc formatting (#72851) 5 years ago
template.py Documentation: fix modules doc formatting (#72851) 5 years ago
unarchive.py Documentation: fix modules doc formatting (#73037) 5 years ago
uri.py [docs][2.10] Backportapalooza 9 (#71493) 5 years ago
user.py Documentation: fix formatting (#73186) 5 years ago
wait_for.py [stable-2.10] wait_for - ignore psutil related errors (#72401) (#72406) 5 years ago
wait_for_connection.py Backport/2.10/70530 (#71380) 5 years ago
yum.py Backport/2.10/70530 (#71380) 5 years ago
yum_repository.py Backport/2.10/70530 (#71380) 5 years ago