Skip to content

Commit

Permalink
Don't merge stderr to stdout
Browse files Browse the repository at this point in the history
`RunTerraformCommandAndGetStdoutE` actually returns stdout and stderr
combined. This commit fixes that.
  • Loading branch information
g7r committed Dec 25, 2024
1 parent d032448 commit df82e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/terraform/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func RunTerraformCommandAndGetStdoutE(t testing.TestingT, additionalOptions *Opt
cmd := generateCommand(options, args...)
description := fmt.Sprintf("%s %v", options.TerraformBinary, args)
return retry.DoWithRetryableErrorsE(t, description, options.RetryableTerraformErrors, options.MaxRetries, options.TimeBetweenRetries, func() (string, error) {
s, err := shell.RunCommandAndGetOutputE(t, cmd)
s, err := shell.RunCommandAndGetStdOutE(t, cmd)
if err != nil {
return s, err
}
Expand Down

0 comments on commit df82e51

Please sign in to comment.