Skip to content
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

[PR #4640/9e1af2d1 backport][stable-3] onepassword - Get first found config file #4652

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented May 9, 2022

This is a backport of PR #4640 as merged into main (9e1af2d).

SUMMARY

Fixes #4065.

There are three configuration file locations. Use the first found valid config.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

plugins/lookup/onepassword.py
plugins/module_utils/onepassword.py
plugins/modules/identity/onepassword_info.py

ADDITIONAL INFORMATION

This plugin is currently broken since the 1Password v2 CLI was released. More work is needed to address that issue, but this is a first step.

* Get first found configuration file

There are three valid places to get the configuration.

https://developer.1password.com/docs/cli/about-biometric-unlock#remove-old-account-information

* Use common config class

* Add changelog fragment

* Explicitly use new style classes for Python 2.7 compatibility

This shouldn’t matter for lookups, but does matter for module_utils
and modules since Python 2.7 is still supported on the managed node.

* Update changelogs/fragments/4065-onepassword-config.yml

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 9e1af2d)
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added backport bug This issue/PR relates to a bug identity lookup lookup plugin module module module_utils module_utils new_contributor Help guide this first time contributor plugins plugin (any type) labels May 9, 2022
@felixfontein felixfontein merged commit 4ed3fa9 into stable-3 May 9, 2022
@felixfontein felixfontein deleted the patchback/backports/stable-3/9e1af2d1bce7b30995b46a2fa2992a054c507e3a/pr-4640 branch May 9, 2022 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug identity lookup lookup plugin module_utils module_utils module module new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants