Skip to content

Commit 43a5a8b

Browse files
committed
[image-builder] revert don't exit to soon on error
1 parent 9433b0e commit 43a5a8b

File tree

1 file changed

+1
-8
lines changed
  • components/image-builder-bob/cmd

1 file changed

+1
-8
lines changed

components/image-builder-bob/cmd/build.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ var buildCmd = &cobra.Command{
2222
log.Init("bob", "", true, true)
2323
log := log.WithField("command", "build")
2424

25-
t0 := time.Now()
2625
if os.Geteuid() != 0 {
2726
log.Fatal("must run as root")
2827
}
@@ -41,13 +40,7 @@ var buildCmd = &cobra.Command{
4140
}
4241
err = b.Build()
4342
if err != nil {
44-
log.WithError(err).Error("build failed")
45-
46-
// make sure we're running long enough to have our logs read
47-
if dt := time.Since(t0); dt < 5*time.Second {
48-
time.Sleep(10 * time.Second)
49-
}
50-
43+
log.WithError(err).Fatal("build failed")
5144
return
5245
}
5346
},

0 commit comments

Comments
 (0)