diff --git a/puppetreport/report.go b/puppetreport/report.go index 01c8da9..1355bb5 100644 --- a/puppetreport/report.go +++ b/puppetreport/report.go @@ -66,15 +66,13 @@ func (r runReport) success() bool { if !r.TransactionCompleted { return false } - var failed, ok int + var failed int for _, item := range r.ResourceStatuses { if item.Failed { failed++ - } else { - ok++ } } - return ok > 0 && failed == 0 + return failed == 0 } type resourceStatus struct {