Skip to content

Commit

Permalink
Adding ShowOption for JSON handling (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Dec 8, 2023
1 parent 1469cf8 commit 9e073d4
Show file tree
Hide file tree
Showing 4 changed files with 483 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tfexec/internal/e2etest/cmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func diffState(expected *tfjson.State, actual *tfjson.State) string {
// diffPlan returns a human-readable report of the differences between two
// plan values. It returns an empty string if the two values are equal.
func diffPlan(expected *tfjson.Plan, actual *tfjson.Plan) string {
return cmp.Diff(expected, actual, cmpopts.IgnoreFields(tfjson.Plan{}, "TerraformVersion"))
return cmp.Diff(expected, actual, cmpopts.IgnoreFields(tfjson.Plan{}, "TerraformVersion", "useJSONNumber"))
}

// diffSchema returns a human-readable report of the differences between two
Expand Down
Loading

0 comments on commit 9e073d4

Please sign in to comment.