Skip to content

Commit

Permalink
Fix typo in validation (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmorie authored and Ville Aikas committed Oct 20, 2017
1 parent 117bfbd commit 118a0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/servicecatalog/validation/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func validateServiceInstanceUpdate(instance *sc.ServiceInstance) field.ErrorList
}
if instance.Status.CurrentOperation != "" {
if instance.Spec.ClusterServiceClassRef == nil {
allErrs = append(allErrs, field.Required(field.NewPath("spec").Child("clusterServceClassRef"), "serviceClassRef is required when currentOperation is present"))
allErrs = append(allErrs, field.Required(field.NewPath("spec").Child("clusterServiceClassRef"), "serviceClassRef is required when currentOperation is present"))
}
if instance.Spec.ClusterServicePlanRef == nil {
allErrs = append(allErrs, field.Required(field.NewPath("spec").Child("clusterServicePlanRef"), "servicePlanRef is required when currentOperation is present"))
Expand Down

0 comments on commit 118a0f7

Please sign in to comment.