Skip to content

Commit

Permalink
issue #285
Browse files Browse the repository at this point in the history
fix unexpect getCephRootPathLocal value

PluginFolder update at main.go, so cephRootPrefix may get unexpected value
  • Loading branch information
王怀宗 authored and mergify[bot] committed Mar 29, 2019
1 parent da52e8c commit 295202b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cephfs/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ const (
)

var (
cephRootPrefix = PluginFolder + "/controller/volumes/root-"
cephRootPrefix = "/controller/volumes/root-"
)

func getCephRootPathLocal(volID volumeID) string {
return cephRootPrefix + string(volID)
return PluginFolder + cephRootPrefix + string(volID)
}

func getCephRootVolumePathLocal(volID volumeID) string {
Expand Down

0 comments on commit 295202b

Please sign in to comment.