-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use get(..)
instead of [..] for safe lookup of value (Fixes #7240)
#7241
Use get(..)
instead of [..] for safe lookup of value (Fixes #7240)
#7241
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! Can you please add a changelog fragment? Thanks.
It would be good to add tests for this. There is already a test written, you just need to provide new fixture data. A new file with the output from A new entry in the test matrix needs to go here. It will look something like this: {
# Request data from a custom field with no value
"vault_name": "Test Vault",
"queries": ["Dummy Login"],
"kwargs": {
"field": "some-omitted-property",
},
"expected": [""],
"output": load_file("v2_out_04.json")
}, You can run the test from the root of the collection by running That's a lot so please feel free to ask for help. Thanks for fixing this! |
200a44c
to
e52fce3
Compare
…-collections#7240) A OnePassword field item might not have a value (property) when the user has omitted it (on purpose).
e52fce3
to
968d7ba
Compare
Looks great! shipit |
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #7257 🤖 @patchback |
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #7258 🤖 @patchback |
@wkleinheerenbrink thanks for your contribution! |
…for safe lookup of value (Fixes #7240) (#7258) 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 1beb38c) Co-authored-by: Wouter Klein Heerenbrink <wouter@fluxility.com>
…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 1beb38c) Co-authored-by: Wouter Klein Heerenbrink <wouter@fluxility.com>
…-collections#7240) (ansible-collections#7241) A OnePassword field item might not have a value (property) when the user has omitted it (on purpose).
A OnePassword field item might not have a value (property) when the user has omitted it (on purpose).
SUMMARY
ISSUE TYPE
COMPONENT NAME
OnePassword
ADDITIONAL INFORMATION