log when loading config from environment

This commit is contained in:
Matthew Hooker 2017-12-14 11:26:09 -08:00
parent e6e16c1c8b
commit c3eb54f183
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
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()