be true to docs

This commit is contained in:
Adrien Delorme 2019-05-02 17:48:34 +02:00
parent 1dca416f87
commit 263f318e82
1 changed files with 3 additions and 4 deletions

View File

@ -153,13 +153,12 @@ func (c *BuildCommand) Run(args []string) int {
m map[string][]packer.Artifact
}{m: make(map[string][]packer.Artifact)}
errors := make(map[string]error)
// ctx := context.Background()
if cfgParallel == false {
cfgParallelBuilds = 1
}
if cfgParallelBuilds < 1 {
cfgParallelBuilds = math.MaxInt64
}
if cfgParallel == false && cfgParallelBuilds == 0 {
cfgParallelBuilds = 1
}
buildCtx, cancelCtx := context.WithCancel(context.Background())
// Handle interrupts for this build