From e987c554c9ff0740b9945e68228b141031bb31c6 Mon Sep 17 00:00:00 2001 From: Li Yi Date: Thu, 16 Nov 2017 09:42:13 +0800 Subject: [PATCH] Supress warning when NONE was set for healthcheck Change-Id: I9ebcf49e9e8ac76beb037779ad02ac6020169849 Signed-off-by: Li Yi --- daemon/health.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/health.go b/daemon/health.go index 7d8c84a397..115e0cc6d3 100644 --- a/daemon/health.go +++ b/daemon/health.go @@ -253,6 +253,8 @@ func getProbe(c *container.Container) probe { return &cmdProbe{shell: false} case "CMD-SHELL": return &cmdProbe{shell: true} + case "NONE": + return nil default: logrus.Warnf("Unknown healthcheck type '%s' (expected 'CMD') in container %s", config.Test[0], c.ID) return nil