1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2025-01-03 12:20:54 +00:00

Fixed issue of The controls for master - admission control showing wrong status #49

This commit is contained in:
Juned Memon 2017-09-13 04:31:43 +05:30
parent 883b963e21
commit 44994ced33

View File

@ -62,7 +62,8 @@ func (t *testItem) execute(s string) (result bool) {
// --flag=somevalue // --flag=somevalue
// --flag // --flag
// somevalue // somevalue
pttn := `(` + t.Flag + `)(=)*([^\s,]*) *` //pttn := `(` + t.Flag + `)(=)*([^\s,]*) *`
pttn := `(` + t.Flag + `)(=)*([^\s]*) *`
flagRe := regexp.MustCompile(pttn) flagRe := regexp.MustCompile(pttn)
vals := flagRe.FindStringSubmatch(s) vals := flagRe.FindStringSubmatch(s)