validate is no longer called from there

This commit is contained in:
James Bardin 2020-12-01 10:46:58 -05:00
parent 8b08ebc4b5
commit 2016b6bd1c
1 changed files with 0 additions and 19 deletions

View File

@ -2,11 +2,8 @@ package command
import (
"fmt"
"log"
"os"
"runtime"
"github.com/hashicorp/terraform/terraform"
)
// Set to true when we're testing
@ -76,19 +73,3 @@ func ModulePath(args []string) (string, error) {
return args[0], nil
}
func (m *Meta) validateContext(ctx *terraform.Context) bool {
log.Println("[INFO] Validating the context...")
diags := ctx.Validate()
log.Printf("[INFO] Validation result: %d diagnostics", len(diags))
if len(diags) > 0 {
m.Ui.Output(
"There are warnings and/or errors related to your configuration. Please\n" +
"fix these before continuing.\n")
m.showDiagnostics(diags)
}
return !diags.HasErrors()
}