log when loading config from environment
This commit is contained in:
parent
e6e16c1c8b
commit
c3eb54f183
4
main.go
4
main.go
|
@ -275,7 +275,9 @@ func loadConfig() (*config, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
configFilePath := os.Getenv("PACKER_CONFIG")
|
configFilePath := os.Getenv("PACKER_CONFIG")
|
||||||
if configFilePath == "" {
|
if configFilePath != "" {
|
||||||
|
log.Printf("'PACKER_CONFIG' set, loading config from environment.")
|
||||||
|
} else {
|
||||||
var err error
|
var err error
|
||||||
configFilePath, err = packer.ConfigFile()
|
configFilePath, err = packer.ConfigFile()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue