From 4253612c4bbbc8d2ca3f50d1d5950dfc3b096938 Mon Sep 17 00:00:00 2001 From: Jeff Hung Date: Wed, 6 Jun 2018 14:09:55 -0700 Subject: [PATCH 1/3] Fix var-file option for terrafrom --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 7321c03..2736675 100644 --- a/plugin.go +++ b/plugin.go @@ -286,7 +286,7 @@ func tfPlan(config Config, destroy bool) *exec.Cmd { args = append(args, "--target", fmt.Sprintf("%s", v)) } for _, v := range config.VarFiles { - args = append(args, "-var-file", fmt.Sprintf("%s", v)) + args = append(args, fmt.Sprintf("-var-file=%s", v)) } for k, v := range config.Vars { args = append(args, "-var") From b173a5c707a04ce321f8075cad9cc38a5796302e Mon Sep 17 00:00:00 2001 From: Jeff Hung Date: Thu, 7 Jun 2018 11:03:18 -0700 Subject: [PATCH 2/3] Fix incorrect format for terraform validate -var-file command --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 2736675..ef8c94c 100644 --- a/plugin.go +++ b/plugin.go @@ -312,7 +312,7 @@ func tfValidate(config Config) *exec.Cmd { "validate", } for _, v := range config.VarFiles { - args = append(args, "-var-file", fmt.Sprintf("%s", v)) + args = append(args, "-var-file=%s", fmt.Sprintf("%s", v)) } for k, v := range config.Vars { args = append(args, "-var") From 0365dccf992b24d999502a983b3ff96493b71430 Mon Sep 17 00:00:00 2001 From: Jeff Hung Date: Thu, 7 Jun 2018 11:24:21 -0700 Subject: [PATCH 3/3] Fix incorrect format for terraform validate -var-file command --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index ef8c94c..9eba2fc 100644 --- a/plugin.go +++ b/plugin.go @@ -312,7 +312,7 @@ func tfValidate(config Config) *exec.Cmd { "validate", } for _, v := range config.VarFiles { - args = append(args, "-var-file=%s", fmt.Sprintf("%s", v)) + args = append(args, fmt.Sprintf("-var-file=%s", v)) } for k, v := range config.Vars { args = append(args, "-var")