From e5ce25099c0a112a80f222d1f7474bd056c672eb Mon Sep 17 00:00:00 2001 From: Brandon Croft Date: Tue, 25 Jul 2023 08:27:26 -0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sebastian Rivera --- internal/cloudplugin/cloudplugin1/grpc_client_test.go | 2 +- internal/command/cloud.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cloudplugin/cloudplugin1/grpc_client_test.go b/internal/cloudplugin/cloudplugin1/grpc_client_test.go index 7ef7d07fea..8113e88b1a 100644 --- a/internal/cloudplugin/cloudplugin1/grpc_client_test.go +++ b/internal/cloudplugin/cloudplugin1/grpc_client_test.go @@ -132,6 +132,6 @@ func Test_GRPCCloudClient_Execute(t *testing.T) { } if stdoutBuffer.String() != "firstcall\nsecondcall\n" { - t.Errorf("expected error %q, got %q", "firstcall\nsecondcall\n", stdoutBuffer.String()) + t.Errorf("expected output %q, got %q", "firstcall\nsecondcall\n", stdoutBuffer.String()) } } diff --git a/internal/command/cloud.go b/internal/command/cloud.go index f70211e988..9e7d85748d 100644 --- a/internal/command/cloud.go +++ b/internal/command/cloud.go @@ -73,7 +73,7 @@ func (c *CloudCommand) proxy(args []string, stdout, stderr io.Writer) int { // multiple versions are possible. cloud1, ok := raw.(cloudplugin.Cloud1) if !ok { - c.Ui.Error("If more than one cloudplugin versions are available, they need to be added to the cloud command. This is a bug in terraform.") + c.Ui.Error("If more than one cloudplugin versions are available, they need to be added to the cloud command. This is a bug in Terraform.") return ExitRPCError } return cloud1.Execute(args, stdout, stderr) @@ -86,7 +86,7 @@ func (c *CloudCommand) Run(args []string) int { // TODO: Download and verify the signing of the terraform-cloudplugin // release that is appropriate for this OS/Arch if _, err := os.Stat("./terraform-cloudplugin"); err != nil { - c.Ui.Warn("terraform-cloudplugin not found. This plugin does not have an official release, yet.") + c.Ui.Warn("terraform-cloudplugin not found. This plugin does not have an official release yet.") return 1 }