Skip to content

Commit

Permalink
address PR f'back
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob committed Aug 16, 2021
1 parent 212c44b commit 426409a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/provisioning/v1alpha3/provisioner_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (c *Cluster) validate() (errs *apis.FieldError) {
// url.Parse() will accept a lot of input without error; make
// sure it's a real URL
if err != nil || !endpoint.IsAbs() || endpoint.Hostname() == "" {
errs = errs.Also(apis.ErrInvalidValue(c.Endpoint, "endpoint"))
errs = errs.Also(apis.ErrInvalidValue(fmt.Sprintf("%s not a valid URL", c.Endpoint), "endpoint"))
}
}
return errs
Expand Down

0 comments on commit 426409a

Please sign in to comment.