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

fix issue returning typed nil pointers #1535

Merged
merged 1 commit into from
Dec 3, 2021
Merged

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Dec 3, 2021

Fix 3 template functions; secrets, caLeafe and node

These functions returned typed pointers as their data field. Template
execution didn't like these typed nil pointer values when looking up
data on them. Changing them to return untyped pointers with an function
signature returning interface{} fixes this as the template knows to have
these always return <no value>.

Fixes #1418

Fix 3 template functions; secrets, caLeafe and node

These functions returned typed pointers as their data field. Template
execution didn't like these typed nil pointer values when looking up
data on them. Changing them to return untyped pointers with an function
signature returning interface{} fixes this as the template knows to have
these always return '<no value>'.
@eikenb eikenb added bug hashicat-update-required Changes that need to be ported to hashicat labels Dec 3, 2021
@eikenb eikenb added this to the v0.28.0 milestone Dec 3, 2021
@eikenb eikenb requested a review from a team December 3, 2021 21:56
Copy link
Member

@lornasong lornasong left a comment

Choose a reason for hiding this comment

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

makes sense to me!

@eikenb
Copy link
Contributor Author

eikenb commented Dec 3, 2021

Thanks @lornasong!!

@eikenb eikenb merged commit 4b10501 into master Dec 3, 2021
@eikenb eikenb deleted the issue-1418-nil-pointer-eval branch December 3, 2021 23:16
@eikenb eikenb added the hashicat-update-complete Completed porting changes to hashicat label Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug hashicat-update-complete Completed porting changes to hashicat hashicat-update-required Changes that need to be ported to hashicat
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't use secret in variable
2 participants