Fix gometalinter issues

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
This commit is contained in:
Madhu Rajanna 2019-01-28 17:48:19 +05:30
parent c0182c5881
commit 008c82c1e7

View File

@ -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
}