From eb4bfb73268e6c210e9d112d24e6700db601e0bd Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 18 Apr 2022 11:48:54 +0530 Subject: [PATCH] cleanup: use block comment for ClusterInfo example Adjusted the mix of tabs and the spaces and also used block comment for better readability. Signed-off-by: Madhu Rajanna --- internal/util/csiconfig.go | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/internal/util/csiconfig.go b/internal/util/csiconfig.go index 9ccd52ffd..1b45acf10 100644 --- a/internal/util/csiconfig.go +++ b/internal/util/csiconfig.go @@ -60,24 +60,22 @@ type ClusterInfo struct { } // Expected JSON structure in the passed in config file is, -// [ -// { -// "clusterID": "", -// "rbd": { -// "radosNamespace": "" -// }, -// "monitors": -// [ -// "", -// "", -// ... -// ], -// "cephFS": { -// "subvolumeGroup": "" -// } -// }, -// ... -// ]. +// nolint:godot // example json content should not contain unwanted dot. +/* +[{ + "clusterID": "", + "rbd": { + "radosNamespace": "" + }, + "monitors": [ + "", + "" + ], + "cephFS": { + "subvolumeGroup": "" + } +}] +*/ func readClusterInfo(pathToConfig, clusterID string) (*ClusterInfo, error) { var config []ClusterInfo