From 8295809d79f17b3b01fc9f4b7029beabbdf23795 Mon Sep 17 00:00:00 2001 From: Ralph Caraveo Date: Wed, 12 Apr 2017 17:51:16 -0700 Subject: [PATCH] Ensure to exit with a non-zero status code when a timeout occurs and we don't complete all the jobs. --- command/exec.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/exec.go b/command/exec.go index 2e59f2818..26d537f74 100644 --- a/command/exec.go +++ b/command/exec.go @@ -312,6 +312,9 @@ OUTER: c.Ui.Info(fmt.Sprintf("Completed in %0.2f seconds", float64(time.Now().Sub(start))/float64(time.Second))) } + if exitCount < ackCount { + badExit++ + } break OUTER case <-errCh: