Merge pull request #5706 from hashicorp/fix5704

log when loading config from environment
This commit is contained in:
Matthew Hooker 2017-12-14 11:27:58 -08:00 committed by GitHub
commit 1de0004710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -275,7 +275,9 @@ func loadConfig() (*config, error) {
}
configFilePath := os.Getenv("PACKER_CONFIG")
if configFilePath == "" {
if configFilePath != "" {
log.Printf("'PACKER_CONFIG' set, loading config from environment.")
} else {
var err error
configFilePath, err = packer.ConfigFile()