Rely on context to cancel typing boot command.

pull/6129/head
Matthew Hooker 8 years ago
parent 673245afcf
commit 4e2f14196a
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1

@ -129,12 +129,6 @@ func (s *StepTypeBootCommand) Run(ctx context.Context, state multistep.StateBag)
return multistep.ActionHalt
}
// Check for interrupts between typing things so we can cancel
// since this isn't the fastest thing.
if _, ok := state.GetOk(multistep.StateCancelled); ok {
return multistep.ActionHalt
}
if pauseFn != nil {
pauseFn(multistep.DebugLocationAfterRun, fmt.Sprintf("boot_command[%d]: %s", i, command), state)
}

Loading…
Cancel
Save