Commit cbd3f595 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: Enable the debug runner

parent 45566feb
......@@ -44,6 +44,8 @@ type config struct {
VNCPortMin uint `mapstructure:"vnc_port_min"`
VNCPortMax uint `mapstructure:"vnc_port_max"`
PackerDebug bool `mapstructure:"packer_debug"`
RawBootWait string `mapstructure:"boot_wait"`
RawShutdownTimeout string `mapstructure:"shutdown_timeout"`
RawSSHWaitTimeout string `mapstructure:"ssh_wait_timeout"`
......@@ -214,7 +216,11 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
state["ui"] = ui
// Run!
b.runner = &multistep.BasicRunner{Steps: steps}
if b.config.PackerDebug {
b.runner = &multistep.DebugRunner{Steps: steps}
} else {
b.runner = &multistep.BasicRunner{Steps: steps}
}
b.runner.Run(state)
// If we were interrupted or cancelled, then just exit.
......
......@@ -4,7 +4,7 @@ import "log"
// This is the key in configurations that is set to "true" when Packer
// debugging is enabled.
const DebugConfigKey = "packer_config"
const DebugConfigKey = "packer_debug"
// A Build represents a single job within Packer that is responsible for
// building some machine image artifact. Builds are meant to be parallelized.
......
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