From 8b5b2e992746269aa7a635ce3c9a84db0894dff8 Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Fri, 25 Aug 2017 13:36:17 -0400 Subject: [PATCH] Set flexvolumeplugin.host so that it's not nil --- pkg/volume/flexvolume/plugin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/volume/flexvolume/plugin.go b/pkg/volume/flexvolume/plugin.go index 2e54aae964c..733d3082ce5 100644 --- a/pkg/volume/flexvolume/plugin.go +++ b/pkg/volume/flexvolume/plugin.go @@ -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 }