ansible/changelogs/fragments/ansiballz-re-escape-site-packages.yml
Rick Elrod 7ef3dc2b8b
[controller ansiballz] escape directory regex (#74270)
Change:
- We were passing a directory name directly to re.compile().
  If the directory isn't valid regex (or is) this can have odd side
  effects, such as crashing.
- Fix a few other similar cases, but less likely to be a real issue.

Test Plan:
- New test

Signed-off-by: Rick Elrod <rick@elrod.me>
2021-04-15 17:06:58 -05:00

5 lines
207 B
YAML

bugfixes:
- >-
ansiballz - avoid treating path to site_packages as regex; escape it.
This prevents a crash when ansible is installed to, or running from, an oddly named directory like ``ansi[ble``