From 278bb873e1f6712a4b2de536c4630d392d9fa073 Mon Sep 17 00:00:00 2001 From: Xavier Villaneau Date: Wed, 15 Jun 2022 16:10:41 -0400 Subject: [PATCH] Fix comments and docstring in getCrashLs --- ceph/crashes.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ceph/crashes.go b/ceph/crashes.go index e953942..e711ca1 100644 --- a/ceph/crashes.go +++ b/ceph/crashes.go @@ -69,13 +69,10 @@ type cephCrashLs struct { Archived string `json:"archived"` } -// getCrashLs runs the 'crash ls' command and parses its results +// getCrashLs runs the 'ceph crash ls' command and process its results func (c *CrashesCollector) getCrashLs() (map[crashEntry]int, error) { crashes := make(map[crashEntry]int) - // We parse the plain format because it is quite compact. - // The JSON output of this command is very verbose and might be too slow - // to process in an outage storm. cmd, err := json.Marshal(map[string]interface{}{ "prefix": "crash ls", "format": "json",