diff --git a/app/collector.go b/app/collector.go index e76df513d..6481b4ef5 100644 --- a/app/collector.go +++ b/app/collector.go @@ -255,6 +255,7 @@ func (c StaticCollector) HasHistoricReports() bool { return false } +// AdminSummary implements Reporter func (c StaticCollector) AdminSummary(ctx context.Context, timestamp time.Time) (string, error) { return "not implemented", nil } diff --git a/report/report.go b/report/report.go index 3c2f788d0..be4bf7ead 100644 --- a/report/report.go +++ b/report/report.go @@ -559,10 +559,11 @@ func (r Report) upgradeDNSRecords() Report { return r } +// Summary returns a human-readable string summarising the contents, for diagnostic purposes func (r Report) Summary() string { ret := "" if len(r.Host.Nodes) == 1 { - for k, _ := range r.Host.Nodes { + for k := range r.Host.Nodes { ret = k + ":" } }