fix(cloud): cloud backend rendering query warning diags#38040
Conversation
dbanck
left a comment
There was a problem hiding this comment.
Nice catch and thanks for raising the PR!
The JSON has a small typo which trips up the parser and the render logic afterwards. Here is where the parsing fails and the message gets emitted as regular raw CLI output:
terraform/internal/cloud/backend_query.go
Lines 124 to 133 in ade20e5
This prints out the whole JSON line to stdout and allows your test case to pass. Without the typo, the renderer will print a nicely formatting diagnostic message, but the test case will need an update to capture this. I left some comments inline for this.
Thanks again!
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes an issue where any warning diagnostics generated during terraform query execution failed to render in the cloud backend session. Adds a default json log case statement to catch possible diagnostics to surface to the user.
Target Release
1.14.x
Rollback Plan
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
CHANGELOG entry