Skip to content

Commit a60cbd5

Browse files
committed
Fixed error string should not be capitalized
1 parent 23b66ea commit a60cbd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/volume/hostpath/host_path.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func (plugin *hostPathPlugin) NewDeleter(spec *volume.Spec) (volume.Deleter, err
160160

161161
func (plugin *hostPathPlugin) NewProvisioner(options volume.VolumeOptions) (volume.Provisioner, error) {
162162
if !plugin.config.ProvisioningEnabled {
163-
return nil, fmt.Errorf("Provisioning in volume plugin %q is disabled", plugin.GetPluginName())
163+
return nil, fmt.Errorf("provisioning in volume plugin %q is disabled", plugin.GetPluginName())
164164
}
165165
return newProvisioner(options, plugin.host, plugin)
166166
}
@@ -341,7 +341,7 @@ func getVolumeSource(spec *volume.Spec) (*v1.HostPathVolumeSource, bool, error)
341341
return spec.PersistentVolume.Spec.HostPath, spec.ReadOnly, nil
342342
}
343343

344-
return nil, false, fmt.Errorf("Spec does not reference an HostPath volume type")
344+
return nil, false, fmt.Errorf("spec does not reference an HostPath volume type")
345345
}
346346

347347
type hostPathTypeChecker interface {

0 commit comments

Comments
 (0)