From 008c82c1e70a099b0ee5723115cfb2f1851b8e7d Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 28 Jan 2019 17:48:19 +0530 Subject: [PATCH] Fix gometalinter issues Signed-off-by: Madhu Rajanna --- pkg/cephfs/cephconf.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cephfs/cephconf.go b/pkg/cephfs/cephconf.go index 9277e63a4..f122332a2 100644 --- a/pkg/cephfs/cephconf.go +++ b/pkg/cephfs/cephconf.go @@ -37,8 +37,10 @@ const cephKeyring = `[client.{{.UserID}}] key = {{.Key}} ` +// gosec const cephSecret = `{{.Key}}` +// gosec const ( cephConfigRoot = "/etc/ceph" cephConfigFileNameFmt = "ceph.share.%s.conf" @@ -74,6 +76,7 @@ type cephConfigData struct { } func writeCephTemplate(fileName string, m os.FileMode, t *template.Template, data interface{}) error { + // gosec if err := os.MkdirAll(cephConfigRoot, 0755); err != nil { return err }