Skip to content

Commit 3cf76a7

Browse files
make wording more consistent
1 parent ecfbdaf commit 3cf76a7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/command/views/json/change_summary.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ func (cs *ChangeSummary) String() string {
3838
}
3939
buf.WriteString(fmt.Sprintf("%d added, %d changed, %d destroyed.", cs.Add, cs.Change, cs.Remove))
4040
if cs.ActionInvocation > 0 {
41-
buf.WriteString(fmt.Sprintf(" %d actions invoked.", cs.ActionInvocation))
41+
buf.WriteString(fmt.Sprintf(" Actions: %d invoked.", cs.ActionInvocation))
4242
}
4343
case OperationDestroyed:
4444
buf.WriteString(fmt.Sprintf("Destroy complete! Resources: %d destroyed.", cs.Remove))
4545
if cs.ActionInvocation > 0 {
46-
buf.WriteString(fmt.Sprintf(" %d actions invoked.", cs.ActionInvocation))
46+
buf.WriteString(fmt.Sprintf(" Actions: %d invoked.", cs.ActionInvocation))
4747
}
4848
case OperationPlanned:
4949
buf.WriteString("Plan: ")
@@ -52,7 +52,7 @@ func (cs *ChangeSummary) String() string {
5252
}
5353
buf.WriteString(fmt.Sprintf("%d to add, %d to change, %d to destroy.", cs.Add, cs.Change, cs.Remove))
5454
if cs.ActionInvocation > 0 {
55-
buf.WriteString(fmt.Sprintf(" %d actions to be invoked.", cs.ActionInvocation))
55+
buf.WriteString(fmt.Sprintf(" Actions: %d to invoke.", cs.ActionInvocation))
5656
}
5757
default:
5858
buf.WriteString(fmt.Sprintf("%s: %d add, %d change, %d destroy", cs.Operation, cs.Add, cs.Change, cs.Remove))

internal/command/views/json_view_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ func TestJSONView_ChangeSummaryWithActionInvocations(t *testing.T) {
310310
want := []map[string]interface{}{
311311
{
312312
"@level": "info",
313-
"@message": "Apply complete! Resources: 1 added, 2 changed, 3 destroyed. 23 actions invoked.",
313+
"@message": "Apply complete! Resources: 1 added, 2 changed, 3 destroyed. Actions: 23 invoked.",
314314
"@module": "terraform.ui",
315315
"type": "change_summary",
316316
"changes": map[string]interface{}{
@@ -342,7 +342,7 @@ func TestJSONView_ChangeSummaryWithActionInvocationsAndImports(t *testing.T) {
342342
want := []map[string]interface{}{
343343
{
344344
"@level": "info",
345-
"@message": "Apply complete! Resources: 2 imported, 1 added, 2 changed, 3 destroyed. 23 actions invoked.",
345+
"@message": "Apply complete! Resources: 2 imported, 1 added, 2 changed, 3 destroyed. Actions: 23 invoked.",
346346
"@module": "terraform.ui",
347347
"type": "change_summary",
348348
"changes": map[string]interface{}{

0 commit comments

Comments
 (0)