summaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2021-03-19 18:18:31 +0100
committerGitHub <noreply@github.com>2021-03-19 18:18:31 +0100
commit089d0a0508a470799d099d95fc371e66756a00b3 (patch)
treef9bb0ebcd1312716b73acccc600e5c14296de2f9 /README.rst
parentFix a bug adding unrelated candidates to the plugin loader redirect_list (#73... (diff)
downloadansible-089d0a0508a470799d099d95fc371e66756a00b3.tar.xz
ansible-089d0a0508a470799d099d95fc371e66756a00b3.zip
find - set proper default based on use_regex (#73961)
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>
Diffstat (limited to 'README.rst')
0 files changed, 0 insertions, 0 deletions