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

Add helper for extracting plan struct without logging and without specifying a plan file #957

Merged
merged 1 commit into from
Jul 26, 2021

Conversation

yorinasub17
Copy link
Contributor

I'm finding myself rewriting versions of this function more often than not, to the point that it probably makes sense to live in terratest.

The point of this function is:

  • Avoid logging the planfile json to console. This is a really big log message that is not human readable, and is not very useful for debugging (there are other, easier ways to debug the plan file, such as by introspecting the struct using delve).

  • Avoid having to specify where to store the plan file. After some usage, I realized that I never need the plan file on disk after I get the struct out.

@yorinasub17 yorinasub17 requested a review from brikis98 as a code owner July 23, 2021 22:57
Copy link
Contributor

@zackproser zackproser left a comment

Choose a reason for hiding this comment

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

LGTM

@yorinasub17
Copy link
Contributor Author

Thanks for review! Going to merge this in now.

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