mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-01-03 04:10:55 +00:00
Fix merge of skip check
This commit is contained in:
parent
911e9051dc
commit
db962a0ad9
@ -78,6 +78,7 @@ type Check struct {
|
|||||||
// the results.
|
// the results.
|
||||||
func (c *Check) Run() {
|
func (c *Check) Run() {
|
||||||
|
|
||||||
|
// If check type is skip, force result to INFO
|
||||||
if c.Type == "skip" {
|
if c.Type == "skip" {
|
||||||
c.State = INFO
|
c.State = INFO
|
||||||
return
|
return
|
||||||
@ -89,12 +90,6 @@ func (c *Check) Run() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// If check type is skip, force result to INFO.
|
|
||||||
if c.Type == "skip" {
|
|
||||||
c.State = INFO
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var out bytes.Buffer
|
var out bytes.Buffer
|
||||||
var errmsgs string
|
var errmsgs string
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user