From 32be2ee083325757008382ff7ac590beb3b7feab Mon Sep 17 00:00:00 2001 From: psihachina Date: Wed, 28 Sep 2022 13:55:42 +0300 Subject: [PATCH] renamed `statePath` to `stackPath` --- internal/commands/tfenv.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/commands/tfenv.go b/internal/commands/tfenv.go index 453f56f0..c41a4f04 100644 --- a/internal/commands/tfenv.go +++ b/internal/commands/tfenv.go @@ -123,17 +123,17 @@ func GenerateTerraformFiles(name string, terraformStateBucketName string, projec NAMESPACE: project.Namespace, } - statePath := filepath.Join(project.EnvDir, name) + stackPath := filepath.Join(project.EnvDir, name) if name == "infra" { - statePath = project.EnvDir + stackPath = project.EnvDir } logrus.Debugf("backend opts: %s", backendOpts) - logrus.Debugf("state dir path: %s", statePath) + logrus.Debugf("state dir path: %s", stackPath) err := template.GenerateBackendTf( backendOpts, - statePath, + stackPath, ) if err != nil { pterm.Error.Printfln("Generate terraform file for \"%s\" not completed", name) @@ -164,11 +164,11 @@ func GenerateTerraformFiles(name string, terraformStateBucketName string, projec } logrus.Debugf("backend opts: %s", varsOpts) - logrus.Debugf("state dir path: %s", statePath) + logrus.Debugf("state dir path: %s", stackPath) err = template.GenerateVarsTf( varsOpts, - statePath, + stackPath, ) if err != nil { pterm.Error.Printfln("Generate terraform file for \"%s\" not completed", name)