daemon: fix double-unlock in health check probe
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
parent
eb76c93098
commit
786c9adaa2
1 changed files with 0 additions and 1 deletions
|
@ -160,7 +160,6 @@ func (p *cmdProbe) run(ctx context.Context, d *Daemon, cntr *container.Container
|
|||
info.Lock()
|
||||
defer info.Unlock()
|
||||
if info.ExitCode == nil {
|
||||
info.Unlock()
|
||||
return 0, fmt.Errorf("healthcheck for container %s has no exit code", cntr.ID)
|
||||
}
|
||||
return *info.ExitCode, nil
|
||||
|
|
Loading…
Add table
Reference in a new issue