remove cephRootPrefix as global var

This commit is contained in:
王怀宗 2019-03-27 19:42:06 +08:00 committed by mergify[bot]
parent 295202b98e
commit 2097741607

View File

@ -30,12 +30,8 @@ const (
namespacePrefix = "ns-" namespacePrefix = "ns-"
) )
var (
cephRootPrefix = "/controller/volumes/root-"
)
func getCephRootPathLocal(volID volumeID) string { func getCephRootPathLocal(volID volumeID) string {
return PluginFolder + cephRootPrefix + string(volID) return fmt.Sprintf("%s/controller/volumes/root-%s", PluginFolder, string(volID))
} }
func getCephRootVolumePathLocal(volID volumeID) string { func getCephRootVolumePathLocal(volID volumeID) string {