Explorar o código

Supress warning when NONE was set for healthcheck

Change-Id: I9ebcf49e9e8ac76beb037779ad02ac6020169849
Signed-off-by: Li Yi <denverdino@gmail.com>
Li Yi %!s(int64=7) %!d(string=hai) anos
pai
achega
e987c554c9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      daemon/health.go

+ 2 - 0
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