diff --git a/check/check.go b/check/check.go index e73c58f..b72bb60 100644 --- a/check/check.go +++ b/check/check.go @@ -60,6 +60,7 @@ type Check struct { ID string `yaml:"id" json:"id"` Text string Audit string `json:"omit"` + Type string `json:"type"` Commands []*exec.Cmd `json:"omit"` Tests *tests `json:"omit"` Set bool `json:"omit"` @@ -70,6 +71,12 @@ type Check struct { // Run executes the audit commands specified in a check and outputs // the results. func (c *Check) Run(verbose bool) { + // If check type is manual, force result to WARN. + if c.Type == "manual" { + c.State = WARN + return + } + var out bytes.Buffer var errmsgs string