mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-02-21 12:02:30 +00:00
The check's actual result property is now set to be the audit command's output
fix #280
This commit is contained in:
parent
fc536b239b
commit
240c8ad5b0
@ -135,7 +135,6 @@ func (t *testItem) execute(s string) *testOutput {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
result.actualResult = strings.ToLower(flagVal)
|
|
||||||
switch t.Compare.Op {
|
switch t.Compare.Op {
|
||||||
case "eq":
|
case "eq":
|
||||||
value := strings.ToLower(flagVal)
|
value := strings.ToLower(flagVal)
|
||||||
@ -232,6 +231,10 @@ func (ts *tests) execute(s string) *testOutput {
|
|||||||
finalOutput.testResult = result
|
finalOutput.testResult = result
|
||||||
finalOutput.actualResult = res[0].actualResult
|
finalOutput.actualResult = res[0].actualResult
|
||||||
|
|
||||||
|
if finalOutput.actualResult == "" {
|
||||||
|
finalOutput.actualResult = s
|
||||||
|
}
|
||||||
|
|
||||||
return finalOutput
|
return finalOutput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user