mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Supress warning when NONE was set for healthcheck
Change-Id: I9ebcf49e9e8ac76beb037779ad02ac6020169849 Signed-off-by: Li Yi <denverdino@gmail.com>
This commit is contained in:
parent
ab90bc2961
commit
e987c554c9
1 changed files with 2 additions and 0 deletions
|
@ -253,6 +253,8 @@ func getProbe(c *container.Container) probe {
|
||||||
return &cmdProbe{shell: false}
|
return &cmdProbe{shell: false}
|
||||||
case "CMD-SHELL":
|
case "CMD-SHELL":
|
||||||
return &cmdProbe{shell: true}
|
return &cmdProbe{shell: true}
|
||||||
|
case "NONE":
|
||||||
|
return nil
|
||||||
default:
|
default:
|
||||||
logrus.Warnf("Unknown healthcheck type '%s' (expected 'CMD') in container %s", config.Test[0], c.ID)
|
logrus.Warnf("Unknown healthcheck type '%s' (expected 'CMD') in container %s", config.Test[0], c.ID)
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue