Skip to content

Commit

Permalink
remove cephRootPrefix as global var
Browse files Browse the repository at this point in the history
  • Loading branch information
王怀宗 authored and mergify[bot] committed Mar 29, 2019
1 parent 295202b commit 2097741
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/cephfs/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@ const (
namespacePrefix = "ns-"
)

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

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 {
Expand Down

0 comments on commit 2097741

Please sign in to comment.