Skip to content

Commit 7bb3847

Browse files
Klaus Wagnerpoiana
authored andcommitted
Podman init will expose nil on the error channel if init was successful
Signed-off-by: Klaus Wagner <Klaus.Wagner@erstegroup.com>
1 parent 59ae99b commit 7bb3847

File tree

1 file changed

+3
-1
lines changed
  • plugins/container/go-worker/pkg/container

1 file changed

+3
-1
lines changed

plugins/container/go-worker/pkg/container/podman.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ func (pc *podmanEngine) Listen(ctx context.Context, wg *sync.WaitGroup) (<-chan
287287
// Catch error on initialization of evChn
288288
select {
289289
case err := <-evErrorChn:
290-
return nil, err
290+
if err != nil {
291+
return nil, err
292+
}
291293
case <-time.After(containerEventsErrorTimeout):
292294
break
293295
}

0 commit comments

Comments
 (0)