[PR #7564/241cc02f backport][stable-8] onepassword lookup - Make section and field case insensitive (#7662)

onepassword lookup - Make section and field case insensitive (#7564)

* onepassword lookup: Make section and field case insensitive

This was a regression in behavior when adding support for op v2.

* Return a string by default to avoid an exception if a field is missing

* Use a helper function to lower a value if possible

* Update changelog

(cherry picked from commit 241cc02fa8)

Co-authored-by: Sam Doran <sdoran@redhat.com>
This commit is contained in:
patchback[bot] 2023-12-01 18:17:48 +01:00 committed by GitHub
parent ef16e7ea4e
commit fc02a7c74e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 6 deletions

View file

@ -0,0 +1,4 @@
bugfixes:
- >-
onepassword lookup plugin - field and section titles are now case insensitive when using
op CLI version two or later. This matches the behavior of version one (https://github.com/ansible-collections/community.general/pull/7564).