mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Apply suggestions from code review
Co-authored-by: Sebastian Rivera <sebastian.rivera@hashicorp.com>
This commit is contained in:
parent
9bb566dcdb
commit
e5ce25099c
@ -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())
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user