fix unexpect getCephRootPathLocal value

PluginFolder update at main.go, so cephRootPrefix may get unexpected value
This commit is contained in:
王怀宗 2019-03-27 13:08:42 +08:00 committed by mergify[bot]
parent da52e8cc63
commit 295202b98e

View File

@ -31,11 +31,11 @@ const (
) )
var ( var (
cephRootPrefix = PluginFolder + "/controller/volumes/root-" cephRootPrefix = "/controller/volumes/root-"
) )
func getCephRootPathLocal(volID volumeID) string { func getCephRootPathLocal(volID volumeID) string {
return cephRootPrefix + string(volID) return PluginFolder + cephRootPrefix + string(volID)
} }
func getCephRootVolumePathLocal(volID volumeID) string { func getCephRootVolumePathLocal(volID volumeID) string {