Skip to content

Commit a060546

Browse files
operator: fix "non-constant format string in call to fmt.Errorf" go vet error ahead
1 parent 27e66bc commit a060546

File tree

1 file changed

+2
-2
lines changed
  • operator/pkg/controller/clusterconfig/controlplane

1 file changed

+2
-2
lines changed

operator/pkg/controller/clusterconfig/controlplane/ingress.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (r *IngressReconciler) Reconcile(ctx context.Context) utils.SubReconcilerRe
176176
"BootstrapRetrievingError",
177177
message,
178178
)
179-
return utils.NeedRequeue(fmt.Errorf(message))
179+
return utils.NeedRequeue(fmt.Errorf("%s", message))
180180
}
181181

182182
for _, addr := range nodeList.Items[0].Status.Addresses {
@@ -193,7 +193,7 @@ func (r *IngressReconciler) Reconcile(ctx context.Context) utils.SubReconcilerRe
193193
"BootstrapIPRetrievingError",
194194
message,
195195
)
196-
return utils.NeedRequeue(fmt.Errorf(message))
196+
return utils.NeedRequeue(fmt.Errorf("%s", message))
197197
}
198198
}
199199
r.instance.Status.ControlPlane.Ingress.IP = ingressIP

0 commit comments

Comments
 (0)