From 2016b6bd1c3b39c2db1e88289ec083afa61ebe43 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Tue, 1 Dec 2020 10:46:58 -0500 Subject: [PATCH] validate is no longer called from there --- command/command.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/command/command.go b/command/command.go index 815a6fa6de..8976f21a95 100644 --- a/command/command.go +++ b/command/command.go @@ -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() -}