From a60cbd553587c4c7bceffab0638f99fb097cd99d Mon Sep 17 00:00:00 2001 From: yuzhiquan Date: Mon, 20 Jul 2020 20:58:06 +0800 Subject: [PATCH] Fixed error string should not be capitalized --- pkg/volume/hostpath/host_path.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/volume/hostpath/host_path.go b/pkg/volume/hostpath/host_path.go index 3fa56d5c8c2..3646a9d205f 100644 --- a/pkg/volume/hostpath/host_path.go +++ b/pkg/volume/hostpath/host_path.go @@ -160,7 +160,7 @@ func (plugin *hostPathPlugin) NewDeleter(spec *volume.Spec) (volume.Deleter, err func (plugin *hostPathPlugin) NewProvisioner(options volume.VolumeOptions) (volume.Provisioner, error) { if !plugin.config.ProvisioningEnabled { - return nil, fmt.Errorf("Provisioning in volume plugin %q is disabled", plugin.GetPluginName()) + return nil, fmt.Errorf("provisioning in volume plugin %q is disabled", plugin.GetPluginName()) } return newProvisioner(options, plugin.host, plugin) } @@ -341,7 +341,7 @@ func getVolumeSource(spec *volume.Spec) (*v1.HostPathVolumeSource, bool, error) return spec.PersistentVolume.Spec.HostPath, spec.ReadOnly, nil } - return nil, false, fmt.Errorf("Spec does not reference an HostPath volume type") + return nil, false, fmt.Errorf("spec does not reference an HostPath volume type") } type hostPathTypeChecker interface {