Commit 010a3767 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #255 from johnbellone/patch-1

Update packer.go to cleanup plugin clients on bad CLI exit. 
parents 9638a30d 1519341c
......@@ -90,6 +90,7 @@ func main() {
env, err := packer.NewEnvironment(envConfig)
if err != nil {
fmt.Fprintf(os.Stderr, "Packer initialization error: \n\n%s\n", err)
plugin.CleanupClients()
os.Exit(1)
}
......@@ -98,6 +99,7 @@ func main() {
exitCode, err := env.Cli(os.Args[1:])
if err != nil {
fmt.Fprintf(os.Stderr, "Error executing CLI: %s\n", err.Error())
plugin.CleanupClients()
os.Exit(1)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment