-
Notifications
You must be signed in to change notification settings - Fork 90
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
openssh_keypair: Populate return values when keypair exists and check_mode=true #230
openssh_keypair: Populate return values when keypair exists and check_mode=true #230
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! BTW, you can ignore the failing third-party check, it currently breaks randomly...
@@ -0,0 +1,2 @@ | |||
minor_changes: | |||
- openssh_keypair - enhanced ``check_mode`` to populate return values for existing keypairs (https://github.com/ansible-collections/community.crypto/pull/230). |
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.
- openssh_keypair - enhanced ``check_mode`` to populate return values for existing keypairs (https://github.com/ansible-collections/community.crypto/pull/230). | |
- openssh_keypair - fix ``check_mode`` to populate return values for existing keypairs (https://github.com/ansible-collections/community.crypto/issues/113, https://github.com/ansible-collections/community.crypto/pull/230). |
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.
Actually (looking at what needs to be changed) I think this is more a bugfix than a feature.
@@ -0,0 +1,2 @@ | |||
minor_changes: |
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.
minor_changes: | |
bugfixes: |
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 agree.
@Ajpantuso btw, if you have time to review something, #203, #204, #205 and #206 are looking for reviews ;) |
Ah, so the tables have turned :). Will take a look before my next contribution here since I saw at least one of these blocking another request. |
@Ajpantuso thanks for fixing/implementing this! :) |
SUMMARY
Enhancing
check_mode
foropenssh_keypair
with populated return values if keypair already exists.Fixes #113
ISSUE TYPE
COMPONENT NAME
plugins/modules/openssh_keypair.py
ADDITIONAL INFORMATION
Straight forward change to execute the check logic prior to dumping the return values into the
results
dictionary whencheck_mode=true
.