mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-04-11 18:13:00 +00:00
Fix gometalinter issues
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
This commit is contained in:
parent
c0182c5881
commit
008c82c1e7
@ -37,8 +37,10 @@ const cephKeyring = `[client.{{.UserID}}]
|
|||||||
key = {{.Key}}
|
key = {{.Key}}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
// gosec
|
||||||
const cephSecret = `{{.Key}}`
|
const cephSecret = `{{.Key}}`
|
||||||
|
|
||||||
|
// gosec
|
||||||
const (
|
const (
|
||||||
cephConfigRoot = "/etc/ceph"
|
cephConfigRoot = "/etc/ceph"
|
||||||
cephConfigFileNameFmt = "ceph.share.%s.conf"
|
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 {
|
func writeCephTemplate(fileName string, m os.FileMode, t *template.Template, data interface{}) error {
|
||||||
|
// gosec
|
||||||
if err := os.MkdirAll(cephConfigRoot, 0755); err != nil {
|
if err := os.MkdirAll(cephConfigRoot, 0755); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user