mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
* Modify yum/tasks/proxy.yml to usernames that expose regex bug * Fix bad regex backref/interpolation w/yum proxy username A yum proxy username that begins with a number was being interpolated as part of the backref, resulting in an error: "sre_constants.error: invalid group reference" Closes #47797
This commit is contained in:
parent
4b8f2c99d2
commit
cd75074fc5
2 changed files with 9 additions and 9 deletions
|
@ -710,7 +710,7 @@ class YumModule(YumDnf):
|
|||
for item in scheme:
|
||||
os.environ[item + "_proxy"] = re.sub(
|
||||
r"(http://)",
|
||||
r"\1" + namepass, proxy_url
|
||||
r"\g<1>" + namepass, proxy_url
|
||||
)
|
||||
yield
|
||||
except yum.Errors.YumBaseError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue