@@ -116,7 +116,7 @@ func (plugin *cinderPlugin) GetAccessModes() []v1.PersistentVolumeAccessMode {
116116}
117117
118118func (plugin * cinderPlugin ) NewMounter (spec * volume.Spec , pod * v1.Pod , _ volume.VolumeOptions ) (volume.Mounter , error ) {
119- return plugin .newMounterInternal (spec , pod .UID , & CinderDiskUtil {}, plugin .host .GetMounter ())
119+ return plugin .newMounterInternal (spec , pod .UID , & CinderDiskUtil {}, plugin .host .GetMounter (plugin . GetPluginName () ))
120120}
121121
122122func (plugin * cinderPlugin ) newMounterInternal (spec * volume.Spec , podUID types.UID , manager cdManager , mounter mount.Interface ) (volume.Mounter , error ) {
@@ -143,7 +143,7 @@ func (plugin *cinderPlugin) newMounterInternal(spec *volume.Spec, podUID types.U
143143}
144144
145145func (plugin * cinderPlugin ) NewUnmounter (volName string , podUID types.UID ) (volume.Unmounter , error ) {
146- return plugin .newUnmounterInternal (volName , podUID , & CinderDiskUtil {}, plugin .host .GetMounter ())
146+ return plugin .newUnmounterInternal (volName , podUID , & CinderDiskUtil {}, plugin .host .GetMounter (plugin . GetPluginName () ))
147147}
148148
149149func (plugin * cinderPlugin ) newUnmounterInternal (volName string , podUID types.UID , manager cdManager , mounter mount.Interface ) (volume.Unmounter , error ) {
@@ -216,7 +216,7 @@ func (plugin *cinderPlugin) getCloudProvider() (CinderProvider, error) {
216216}
217217
218218func (plugin * cinderPlugin ) ConstructVolumeSpec (volumeName , mountPath string ) (* volume.Spec , error ) {
219- mounter := plugin .host .GetMounter ()
219+ mounter := plugin .host .GetMounter (plugin . GetPluginName () )
220220 pluginDir := plugin .host .GetPluginDir (plugin .GetPluginName ())
221221 sourceName , err := mounter .GetDeviceNameFromMount (mountPath , pluginDir )
222222 if err != nil {
0 commit comments