builder/vmware: interrupts work during VNC type on VMware

This commit is contained in:
Mitchell Hashimoto 2013-08-16 09:07:27 -07:00
parent b49fe4971a
commit 3fc069c48b
2 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,7 @@ BUG FIXES:
written to the FAT12 filesystem. [GH-285] written to the FAT12 filesystem. [GH-285]
* builder/vmware: dowload progress won't be shown until download * builder/vmware: dowload progress won't be shown until download
actually starts. [GH-288] actually starts. [GH-288]
* builder/vmware: interrupt works while typing commands over VNC.
* builder/virtualbox: floppy files names of 13 characters are now properly * builder/virtualbox: floppy files names of 13 characters are now properly
written to the FAT12 filesystem. [GH-285] written to the FAT12 filesystem. [GH-285]
* post-processor/vagrant: Process user variables. [GH-295] * post-processor/vagrant: Process user variables. [GH-295]

View File

@ -96,6 +96,12 @@ func (s *stepTypeBootCommand) Run(state map[string]interface{}) multistep.StepAc
return multistep.ActionHalt return multistep.ActionHalt
} }
// Check for interrupts between typing things so we can cancel
// since this isn't the fastest thing.
if _, ok := state[multistep.StateCancelled]; ok {
return multistep.ActionHalt
}
vncSendString(c, command) vncSendString(c, command)
} }