Skip to content

fix: use -no-color when calling terraform show state #4812

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

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

coadler
Copy link
Contributor

@coadler coadler commented Oct 31, 2022

No description provided.

@coadler coadler self-assigned this Oct 31, 2022
@@ -248,9 +251,6 @@ func (r *Runner) doCleanFinish(ctx context.Context) {
completedJob *proto.CompletedJob
)

ctx, span := r.startTrace(ctx, tracing.FuncName())
defer span.End()
Copy link
Member

Choose a reason for hiding this comment

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

Not sure why this was removed but seems like it should be fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was originally going in to change this but then I found the -no-color issue so I bundled them up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Having doCleanFinish be a super long span didn't seem that useful since everything else inside of it was already traced.
image

Copy link
Member

Choose a reason for hiding this comment

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

I see what you mean. I guess it gives a better idea of how the code is structured, but not a necessity if you feel cleanliness wins here 👍🏻.

@coadler coadler merged commit 1bd67b8 into main Oct 31, 2022
@coadler coadler deleted the colin/show-state-no-color branch October 31, 2022 18:04
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants