From 2eba0631378523dcc7a53c7ecebdf561113a2617 Mon Sep 17 00:00:00 2001 From: Jocelyn Giroux Date: Thu, 3 Aug 2017 17:03:12 -0400 Subject: [PATCH] Repair the profile management. --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 896fbfc5..b47fd921 100644 --- a/main.go +++ b/main.go @@ -47,6 +47,10 @@ func main() { os.Exit(0) } + if *awsProfile != "" { + Must(aws_helper.InitAwsSession(*awsProfile)) + } + config := tgfConfig{} config.SetValue(dockerImage, *image) config.SetValue(entryPoint, *defaultEntryPoint) @@ -67,10 +71,6 @@ func main() { os.Setenv("TERRAGRUNT_CACHE", filepath.Join("/local", os.TempDir(), "tgf-cache")) - if *awsProfile != "" { - Must(aws_helper.InitAwsSession(*awsProfile)) - } - if *loggingLevel != "" { config.LogLevel = *loggingLevel }