Make various fixes to flex tests and fix some crashes

Remove disruptive from flex
This commit is contained in:
Hemant Kumar
2018-06-27 11:08:29 -04:00
parent 23000cfbd3
commit 4e7c2f638d
8 changed files with 87 additions and 62 deletions

View File

@@ -605,7 +605,8 @@ func (pm *VolumePluginMgr) refreshProbedPlugins() {
}
pm.probedPlugins[event.Plugin.GetPluginName()] = event.Plugin
} else if event.Op == ProbeRemove {
delete(pm.probedPlugins, event.Plugin.GetPluginName())
// Plugin is not available on ProbeRemove event, only PluginName
delete(pm.probedPlugins, event.PluginName)
} else {
glog.Errorf("Unknown Operation on PluginName: %s.",
event.Plugin.GetPluginName())