Skip to content

Commit

Permalink
Repair the profile management.
Browse files Browse the repository at this point in the history
  • Loading branch information
jocgir committed Aug 3, 2017
1 parent 71e80e5 commit 2eba063
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
}
Expand Down

0 comments on commit 2eba063

Please sign in to comment.