Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Do not return error if command exits with success
Browse files Browse the repository at this point in the history
  • Loading branch information
sargun committed Jun 13, 2018
1 parent cb0e128 commit 525fa0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/runtime/docker/docker.go
Expand Up @@ -746,7 +746,7 @@ func prepareNetworkDriver(parentCtx context.Context, cfg Config, c *runtimeTypes
go func() {
defer close(c.AllocationCommandStatus)
e := c.AllocationCommand.Wait()
if e == nil {
if e == nil || (c.AllocationCommand.ProcessState.Exited() && c.AllocationCommand.ProcessState.Success()) {
log.Info("Allocate command exited with no error")
return
}
Expand Down

0 comments on commit 525fa0f

Please sign in to comment.