mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-07-08 07:38:21 +00:00
Adding if-condition for eq operator and empty compare value
This commit is contained in:
parent
8d38c84713
commit
41e8ecc9ba
@ -143,7 +143,11 @@ func (t flagTestItem) findValue(s string) (match bool, value string, err error)
|
||||
if strings.HasPrefix(t.Flag, "--") {
|
||||
value = "true"
|
||||
} else {
|
||||
if t.Compare.Op == "eq" {
|
||||
value = ""
|
||||
} else {
|
||||
value = vals[1]
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user