-
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_ssh_key: avoid inheriting from OnePassCLIv2 #9633
onepassword_ssh_key: avoid inheriting from OnePassCLIv2 #9633
Conversation
883db7a
to
9de0655
Compare
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.
I don't really like that the LookupModule
contains the get_ssh_key
method ))
I still think that keeping OnePassCLIv2SSHKey
is cleaner.
Why? That's where lookup plugins usually have their code (and where it should be).
Keeping it there increases interdependency and makes it harder to add new features to these plugins. |
After reviewing other modules, I agree with you, it makes sense to follow the existing pattern for lookup plugins. |
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.
LGTM
Backport to stable-10: 💚 backport PR created✅ Backport PR branch: Backported as #9639 🤖 @patchback |
@mohammedbabelly20 thanks for reviewing! |
* Avoid inheriting from OnePassCLIv2. * Add changelog fragment. (cherry picked from commit 8749da7)
…heriting from OnePassCLIv2 (#9639) onepassword_ssh_key: avoid inheriting from OnePassCLIv2 (#9633) * Avoid inheriting from OnePassCLIv2. * Add changelog fragment. (cherry picked from commit 8749da7) Co-authored-by: Felix Fontein <[email protected]>
…ections#9633) * Avoid inheriting from OnePassCLIv2. * Add changelog fragment.
SUMMARY
Follow-up to #9580.
This way it's not necessary to inherit from from
OnePassCLIv2
.@mohammedbabelly20 what do you think?
ISSUE TYPE
COMPONENT NAME
onepassword_ssh_key lookup