mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
fixes saltstack/salt#60557 regression pip.installed does not pass env_vars when calling pip.list
This commit is contained in:
parent
364d514df2
commit
e253897675
2 changed files with 5 additions and 2 deletions
1
changelog/60557.fixed
Normal file
1
changelog/60557.fixed
Normal file
|
@ -0,0 +1 @@
|
|||
Fix regression pip.installed does not pass env_vars when calling pip.list
|
|
@ -845,9 +845,11 @@ def installed(
|
|||
# No requirements case.
|
||||
# Check pre-existence of the requested packages.
|
||||
else:
|
||||
# Attempt to pre-cache a the current pip list
|
||||
# Attempt to pre-cache the current pip list
|
||||
try:
|
||||
pip_list = __salt__["pip.list"](bin_env=bin_env, user=user, cwd=cwd)
|
||||
pip_list = __salt__["pip.list"](
|
||||
bin_env=bin_env, user=user, cwd=cwd, env_vars=env_vars
|
||||
)
|
||||
# If we fail, then just send False, and we'll try again in the next function call
|
||||
except Exception as exc: # pylint: disable=broad-except
|
||||
log.exception(exc)
|
||||
|
|
Loading…
Add table
Reference in a new issue