From 8ce6a12203d46376c2c53af55248bbfada5bd23c Mon Sep 17 00:00:00 2001 From: Yoriyasu Yano <430092+yorinasub17@users.noreply.github.com> Date: Tue, 27 Apr 2021 13:20:17 -0500 Subject: [PATCH] Should not neet to call terraform get --- modules/terraform/apply.go | 4 ---- modules/terraform/plan.go | 4 ---- modules/terraform/validate.go | 4 ---- 3 files changed, 12 deletions(-) diff --git a/modules/terraform/apply.go b/modules/terraform/apply.go index 330fd80d3..0000fc6f0 100644 --- a/modules/terraform/apply.go +++ b/modules/terraform/apply.go @@ -24,10 +24,6 @@ func InitAndApplyE(t testing.TestingT, options *Options) (string, error) { return "", err } - if _, err := GetE(t, options); err != nil { - return "", err - } - return ApplyE(t, options) } diff --git a/modules/terraform/plan.go b/modules/terraform/plan.go index 2e4fdb73a..6248a5fb9 100644 --- a/modules/terraform/plan.go +++ b/modules/terraform/plan.go @@ -21,10 +21,6 @@ func InitAndPlanE(t testing.TestingT, options *Options) (string, error) { return "", err } - if _, err := GetE(t, options); err != nil { - return "", err - } - return PlanE(t, options) } diff --git a/modules/terraform/validate.go b/modules/terraform/validate.go index 3ce200846..7daf6ecbf 100644 --- a/modules/terraform/validate.go +++ b/modules/terraform/validate.go @@ -31,9 +31,5 @@ func InitAndValidateE(t testing.TestingT, options *Options) (string, error) { return "", err } - if _, err := GetE(t, options); err != nil { - return "", err - } - return ValidateE(t, options) }