Skip to content

Commit 2d9f20f

Browse files
committed
Supress warning when NONE was set for healthcheck
Fix BZ https://bugzilla.redhat.com/show_bug.cgi?id=1563650 Signed-off-by: Antonio Murdaca <runcom@redhat.com>
1 parent dded712 commit 2d9f20f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

daemon/health.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ func getProbe(c *container.Container) probe {
219219
return &cmdProbe{shell: false}
220220
case "CMD-SHELL":
221221
return &cmdProbe{shell: true}
222+
case "NONE":
223+
return nil
222224
default:
223225
logrus.Warnf("Unknown healthcheck type '%s' (expected 'CMD') in container %s", config.Test[0], c.ID)
224226
return nil

0 commit comments

Comments
 (0)