Make IsQualifiedName return error strings
This commit is contained in:
@@ -272,7 +272,7 @@ func (pm *VolumePluginMgr) InitPlugins(plugins []VolumePlugin, host VolumeHost)
|
||||
allErrs := []error{}
|
||||
for _, plugin := range plugins {
|
||||
name := plugin.Name()
|
||||
if !validation.IsQualifiedName(name) {
|
||||
if len(validation.IsQualifiedName(name)) != 0 {
|
||||
allErrs = append(allErrs, fmt.Errorf("volume plugin has invalid name: %#v", plugin))
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user