Set flexvolumeplugin.host so that it's not nil

This commit is contained in:
Matthew Wong 2017-08-25 13:36:17 -04:00
parent 1f580ae898
commit 8b5b2e9927

View File

@ -86,6 +86,7 @@ func NewFlexVolumePlugin(pluginDir, name string) (volume.VolumePlugin, error) {
// Init is part of the volume.VolumePlugin interface.
func (plugin *flexVolumePlugin) Init(host volume.VolumeHost) error {
plugin.host = host
// Hardwired 'success' as any errors from calling init() will be caught by NewFlexVolumePlugin()
return nil
}