log when loading config from environment

pull/5706/head
Matthew Hooker 9 years ago
parent e6e16c1c8b
commit c3eb54f183
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1

@ -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()

Loading…
Cancel
Save