mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 08:01:24 -07:00
If package installation has an error after the package is install (e.g.
when running tags), then there will be output on stderr and the fallback
regex will match; however, since pkg_add exited non-zero, changed is
never added as a key to the dictionary. As a result the code at the end
of main that checks if anything has changed raises a KeyError.
(cherry picked from commit 02d0e3d286
)
Co-authored-by: Matthew Martin <phy1729@gmail.com>
This commit is contained in:
parent
ad9b4ac781
commit
afddbaa857
2 changed files with 6 additions and 0 deletions
5
changelogs/fragments/3336-openbsd_pkg-fix-KeyError.yml
Normal file
5
changelogs/fragments/3336-openbsd_pkg-fix-KeyError.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
bugfixes:
|
||||
- openbsd_pkg - fix crash from ``KeyError`` exception when package installs,
|
||||
but ``pkg_add`` returns with a non-zero exit code
|
||||
(https://github.com/ansible-collections/community.general/pull/3336).
|
Loading…
Add table
Add a link
Reference in a new issue