-
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
onepassword - Get first found config file #4640
onepassword - Get first found config file #4640
Conversation
There are three valid places to get the configuration. https://developer.1password.com/docs/cli/about-biometric-unlock#remove-old-account-information
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! Could you please add a changelog fragment?
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.
Backport to stable-3: 💚 backport PR created✅ Backport PR branch: Backported as #4652 🤖 @patchback |
@samdoran thanks a lot for fixing this! |
* 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)
Backport to stable-4: 💚 backport PR created✅ Backport PR branch: Backported as #4653 🤖 @patchback |
* 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)
* 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) Co-authored-by: Sam Doran <[email protected]>
* 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) Co-authored-by: Sam Doran <[email protected]>
Thanks @felixfontein! |
SUMMARY
Fixes #4065.
There are three configuration file locations. Use the first found valid config.
ISSUE TYPE
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.