Skip to content

Commit ae77c00

Browse files
Merge pull request #526 from bshephar/error-no-caps
Error strings should not start with capital
2 parents 82ee7b2 + 939df9b commit ae77c00

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

api/v1beta1/heat_webhook.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ package v1beta1
2525
import (
2626
"fmt"
2727

28-
"github.com/openstack-k8s-operators/lib-common/modules/common/service"
2928
topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1"
29+
"github.com/openstack-k8s-operators/lib-common/modules/common/service"
3030
apierrors "k8s.io/apimachinery/pkg/api/errors"
3131
"k8s.io/apimachinery/pkg/runtime"
3232
"k8s.io/apimachinery/pkg/runtime/schema"
@@ -161,7 +161,7 @@ func (r *Heat) ValidateUpdate(old runtime.Object) (admission.Warnings, error) {
161161
oldHeat, ok := old.(*Heat)
162162
if !ok {
163163
return nil, apierrors.NewInternalError(
164-
fmt.Errorf("Expected a Heatv1 object, but got %T", oldHeat))
164+
fmt.Errorf("expected a Heatv1 object, but got %T", oldHeat))
165165
}
166166

167167
var allErrs field.ErrorList
@@ -305,6 +305,7 @@ func (spec *HeatSpecCore) ValidateHeatTopology(basePath *field.Path, namespace s
305305

306306
return allErrs
307307
}
308+
308309
// ValidateHeatTopology - Returns an ErrorList if the Topology is referenced
309310
// on a different namespace
310311
func (spec *HeatSpec) ValidateHeatTopology(basePath *field.Path, namespace string) field.ErrorList {

0 commit comments

Comments
 (0)