Apply suggestions from code review

Co-authored-by: Sebastian Rivera <sebastian.rivera@hashicorp.com>
This commit is contained in:
Brandon Croft 2023-07-25 08:27:26 -06:00
parent 9bb566dcdb
commit e5ce25099c
No known key found for this signature in database
GPG Key ID: B01E32423322EB9D
2 changed files with 3 additions and 3 deletions

View File

@ -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())
}
}

View File

@ -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
}