Skip to content

Commit 353e97a

Browse files
authored
[QT-418] Don't duplicate error diagnostics (#78)
Signed-off-by: Ryan Cragun <[email protected]>
1 parent 9a833b5 commit 353e97a

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

internal/operation/runner_terraform_apply.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ func (r *Runner) terraformApply(
6161
tf.SetStderr(applyOut.Stderr)
6262
err = tf.Apply(ctx, r.TFConfig.ApplyOptions()...)
6363
res.Stderr = applyOut.Stderr.String()
64-
res.Diagnostics = diagnostics.FromErr(err)
6564
if err != nil {
6665
notifyFail(diagnostics.FromErr(err))
6766
return res

internal/operation/runner_terraform_destroy.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ func (r *Runner) terraformDestroy(
8282
tf.SetStdout(destroyOut.Stdout)
8383
tf.SetStderr(destroyOut.Stderr)
8484
err = tf.Destroy(ctx, r.TFConfig.DestroyOptions()...)
85-
res.Diagnostics = diagnostics.FromErr(err)
8685
res.Stderr = destroyOut.Stderr.String()
8786
if err != nil {
8887
notifyFail(diagnostics.FromErr(err))

internal/operation/runner_terraform_exec.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ func (r *Runner) terraformExec(
6565
res.SubCommand = r.TFConfig.ExecSubCmd
6666
res.Stdout = stdout.String()
6767
res.Stderr = execOut.Stderr.String()
68-
res.Diagnostics = diagnostics.FromErr(err)
69-
7068
if err != nil {
7169
notifyFail(diagnostics.FromErr(err))
7270
return res

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var (
1414
//
1515
// Version must conform to the format expected by github.com/hashicorp/go-version
1616
// for tests to work.
17-
Version = "0.0.15"
17+
Version = "0.0.16"
1818

1919
// VersionPrerelease is a pre-release marker for the version. If this is ""
2020
// (empty string) then it means that it is a final release. Otherwise, this

0 commit comments

Comments
 (0)