mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Call global logger when catching pip.list exceptions in states.pip.installed
This commit is contained in:
parent
57608c0067
commit
aeaf55815a
2 changed files with 2 additions and 1 deletions
1
changelog/64169.fixed.md
Normal file
1
changelog/64169.fixed.md
Normal file
|
@ -0,0 +1 @@
|
|||
Call global logger when catching pip.list exceptions in states.pip.installed
|
|
@ -852,7 +852,7 @@ def installed(
|
|||
)
|
||||
# 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)
|
||||
globals().get("log").exception(exc)
|
||||
pip_list = False
|
||||
|
||||
for prefix, state_pkg_name, version_spec in pkgs_details:
|
||||
|
|
Loading…
Add table
Reference in a new issue