Suppress warning when NONE was set for healthcheck
Yong Tang authored on 2017/12/01 04:06:05... | ... |
@@ -254,6 +254,8 @@ func getProbe(c *container.Container) probe { |
254 | 254 |
return &cmdProbe{shell: false} |
255 | 255 |
case "CMD-SHELL": |
256 | 256 |
return &cmdProbe{shell: true} |
257 |
+ case "NONE": |
|
258 |
+ return nil |
|
257 | 259 |
default: |
258 | 260 |
logrus.Warnf("Unknown healthcheck type '%s' (expected 'CMD') in container %s", config.Test[0], c.ID) |
259 | 261 |
return nil |