fix go vet errors

Signed-off-by: Jess Frazelle <jessfraz@google.com>

fix composites

Signed-off-by: Jess Frazelle <me@jessfraz.com>
This commit is contained in:
Jess Frazelle
2016-07-25 14:34:05 -07:00
committed by Jess Frazelle
parent eef8bfec23
commit 7e9d82129e
27 changed files with 249 additions and 235 deletions

View File

@@ -721,9 +721,16 @@ func VerifyZeroDetachCallCount(fakeVolumePlugin *FakeVolumePlugin) error {
// manager and fake volume plugin using a fake volume host.
func GetTestVolumePluginMgr(
t *testing.T) (*VolumePluginMgr, *FakeVolumePlugin) {
v := NewFakeVolumeHost(
"", /* rootDir */
nil, /* kubeClient */
nil, /* plugins */
"", /* rootContext */
)
plugins := ProbeVolumePlugins(VolumeConfig{})
volumePluginMgr := NewFakeVolumeHost(
"" /* rootDir */, nil /* kubeClient */, plugins, "" /* rootContext */).pluginMgr
if err := v.pluginMgr.InitPlugins(plugins, v); err != nil {
t.Fatal(err)
}
return &volumePluginMgr, plugins[0].(*FakeVolumePlugin)
return &v.pluginMgr, plugins[0].(*FakeVolumePlugin)
}