Merge pull request #5706 from hashicorp/fix5704
log when loading config from environment
This commit is contained in:
commit
1de0004710
4
main.go
4
main.go
|
@ -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…
Reference in New Issue