mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 22:00:22 -07:00
[PR #7241/1beb38ce backport][stable-6] Use get(..)
instead of [..] for safe lookup of value (Fixes #7240) (#7257)
Use `get(..)` instead of [..] for safe lookup of value (Fixes #7240) (#7241)
A OnePassword field item might not have a value (property) when the user has omitted it (on purpose).
(cherry picked from commit 1beb38ceff
)
Co-authored-by: Wouter Klein Heerenbrink <wouter@fluxility.com>
This commit is contained in:
parent
0b494a5d2d
commit
578df1b054
5 changed files with 118 additions and 4 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- onepassword - fix KeyError exception when trying to access value of a field that is not filled out in OnePassword item (https://github.com/ansible-collections/community.general/pull/7241).
|
Loading…
Add table
Add a link
Reference in a new issue