@@ -198,7 +198,7 @@ func EnsureDNSData(ctx context.Context, helper *helper.Helper,
198198 instance .Status .Conditions .MarkFalse (
199199 dataplanev1 .NodeSetDNSDataReadyCondition ,
200200 condition .ErrorReason , condition .SeverityError ,
201- err .Error ())
201+ "%s" , err .Error ())
202202 return dnsDetails , err
203203 }
204204 if dnsDetails .ClusterAddresses == nil {
@@ -348,7 +348,7 @@ func reserveIPs(ctx context.Context, helper *helper.Helper,
348348 if len (netConfigList .Items ) == 0 {
349349 errMsg := "no NetConfig CR exists yet"
350350 util .LogForObject (helper , errMsg , instance )
351- return nil , nil , fmt .Errorf (errMsg )
351+ return nil , nil , fmt .Errorf ("%s" , errMsg )
352352 }
353353 netServiceNetMap := BuildNetServiceNetMap (netConfigList .Items [0 ])
354354 allIPSets := make (map [string ]infranetworkv1.IPSet )
@@ -371,7 +371,7 @@ func reserveIPs(ctx context.Context, helper *helper.Helper,
371371 }
372372 if ! foundCtlPlane {
373373 msg := fmt .Sprintf ("ctlplane network should be defined for node %s" , nodeName )
374- return nil , netServiceNetMap , fmt .Errorf (msg )
374+ return nil , netServiceNetMap , fmt .Errorf ("%s" , msg )
375375 }
376376 ipSet := & infranetworkv1.IPSet {
377377 ObjectMeta : metav1.ObjectMeta {
@@ -395,7 +395,7 @@ func reserveIPs(ctx context.Context, helper *helper.Helper,
395395 } else {
396396 msg := fmt .Sprintf ("No Networks defined for node %s or template" , nodeName )
397397 util .LogForObject (helper , msg , instance )
398- return nil , netServiceNetMap , fmt .Errorf (msg )
398+ return nil , netServiceNetMap , fmt .Errorf ("%s" , msg )
399399 }
400400 }
401401 return allIPSets , netServiceNetMap , nil
0 commit comments