Skip to content

Commit 51afa9b

Browse files
author
Joshua Reed
committed
PR cleanup.
1 parent cbfe3ce commit 51afa9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v1beta2/cloudstackcluster_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (r *CloudStackCluster) ValidateCreate() error {
5959
var errorList field.ErrorList
6060

6161
// Require FailureDomains and their respective sub-fields.
62-
if len(r.Spec.FailureDomains) <= 0 {
62+
if len(r.Spec.FailureDomains) == 0 {
6363
errorList = append(errorList, field.Required(field.NewPath("spec", "FailureDomains"), "FailureDomains"))
6464
} else {
6565
for _, fdSpec := range r.Spec.FailureDomains { // Require failureDomain names meet k8s qualified name spec.

0 commit comments

Comments
 (0)