diff --git a/kola/tests/docker/docker.go b/kola/tests/docker/docker.go index 946e437de..e4ed893fa 100644 --- a/kola/tests/docker/docker.go +++ b/kola/tests/docker/docker.go @@ -614,17 +614,13 @@ func testDockerInfo(expectedFs string, c cluster.TestCluster) { // hasSecurityOptions strictly checks that at least one of // the Docker security option is enabled (seccomp, selinux). func hasSecurityOptions(opts []string) bool { - var selinux, seccomp bool for _, opt := range opts { switch opt { - case "selinux": - selinux = true - case "seccomp": - seccomp = true + case "selinux", "seccomp": default: return false } } - return selinux || seccomp + return true }