mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Properly handle unauthenticated yum proxy config (#51915)
Fixes #51548 Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
bcefd61437
commit
2721ed260e
3 changed files with 93 additions and 22 deletions
|
@ -724,6 +724,12 @@ class YumModule(YumDnf):
|
|||
r"(http://)",
|
||||
r"\g<1>" + namepass, proxy_url
|
||||
)
|
||||
else:
|
||||
for item in scheme:
|
||||
os.environ[item + "_proxy"] = re.sub(
|
||||
r"(http://)",
|
||||
r"\g<1>", proxy_url
|
||||
)
|
||||
yield
|
||||
except yum.Errors.YumBaseError:
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue