Skip to content

Commit

Permalink
Merge pull request gruntwork-io#387 from gruntwork-io/terragrunt-sour…
Browse files Browse the repository at this point in the history
…ce-update-env-var

Add TERRAGRUNT_SOURCE_UPDATE env var
  • Loading branch information
brikis98 authored Dec 1, 2017
2 parents dc9a799 + 2f77553 commit f4fc5d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ start with the prefix `--terragrunt-`. The currently available options are:
module to the `--terragrunt-source` parameter you passed in.
* `--terragrunt-source-update`: Delete the contents of the temporary folder before downloading Terraform source code
into it.
into it. Can also be enabled by setting the `TERRAGRUNT_SOURCE_UPDATE` environment variable to `true`.
* `--terragrunt-ignore-dependency-errors`: `*-all` commands continue processing components even if a dependency fails
Expand Down
2 changes: 1 addition & 1 deletion cli/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func parseTerragruntOptionsFromArgs(args []string, writer, errWriter io.Writer)
return nil, err
}

sourceUpdate := parseBooleanArg(args, OPT_TERRAGRUNT_SOURCE_UPDATE, false)
sourceUpdate := parseBooleanArg(args, OPT_TERRAGRUNT_SOURCE_UPDATE, os.Getenv("TERRAGRUNT_SOURCE_UPDATE") == "true" || os.Getenv("TERRAGRUNT_SOURCE_UPDATE") == "1")

ignoreDependencyErrors := parseBooleanArg(args, OPT_TERRAGRUNT_IGNORE_DEPENDENCY_ERRORS, false)

Expand Down

0 comments on commit f4fc5d8

Please sign in to comment.