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

openssl_csr_info: move main code to module_utils to allow easier implementation of diff mode #204

Merged
merged 3 commits into from
May 13, 2021

Conversation

felixfontein
Copy link
Contributor

SUMMARY

Subset of #150.

ISSUE TYPE
  • Refactoring Pull Request
COMPONENT NAME

openssl_csr_info

Copy link
Collaborator

@Ajpantuso Ajpantuso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to #203 just some minor cleanup items, but no functional differences from previous version.

plugins/module_utils/crypto/module_backends/csr_info.py Outdated Show resolved Hide resolved
plugins/module_utils/crypto/module_backends/csr_info.py Outdated Show resolved Hide resolved
plugins/module_utils/crypto/module_backends/csr_info.py Outdated Show resolved Hide resolved
plugins/modules/openssl_csr_info.py Outdated Show resolved Hide resolved
result['extensions_by_oid'] = self._get_all_extensions()

result['signature_valid'] = self._is_signature_valid()
if self.validate_signature and not result['signature_valid']:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for a new feature to be made available to users in a future PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's part of #150 (https:/ansible-collections/community.crypto/pull/150/files#diff-16695b5a53f8b40bd252c59ca4278fc4096b92f07ae1f96edb890c508704bf76R192). The whole four PRs are part of that PR, I moved some of the commits to individual PRs to increase the chance that someone actually reviews them :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, just checking that it was not pushed early or partially implemented.

Copy link
Collaborator

@Ajpantuso Ajpantuso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@felixfontein felixfontein merged commit c0edfb4 into ansible-collections:main May 13, 2021
@felixfontein felixfontein deleted the info-csr-move branch May 13, 2021 20:08
@felixfontein
Copy link
Contributor Author

@Ajpantuso thanks a lot for reviewing this one as well! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants