fix golint issue for pkg/volume/flexvolume package

This commit is contained in:
Cheng Pan
2018-09-19 03:32:55 +00:00
parent 7bfd0d358c
commit aa297d1adf
12 changed files with 30 additions and 26 deletions

View File

@@ -129,7 +129,7 @@ func fakePersistentVolumeSpec() *volume.Spec {
return volume.NewSpecFromPersistentVolume(vol, false)
}
func specJson(plugin *flexVolumeAttachablePlugin, spec *volume.Spec, extraOptions map[string]string) string {
func specJSON(plugin *flexVolumeAttachablePlugin, spec *volume.Spec, extraOptions map[string]string) string {
o, err := NewOptionsForDriver(spec, plugin.host, extraOptions)
if err != nil {
panic("Failed to convert spec: " + err.Error())