Skip to content

Commit e0ee5d8

Browse files
Marcel JacekMarcel Jacek
authored andcommitted
fix: linter
1 parent 6f50815 commit e0ee5d8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • stackit/internal/services/loadbalancer/loadbalancer

stackit/internal/services/loadbalancer/loadbalancer/resource.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,17 +255,17 @@ func (r *loadBalancerResource) ValidateConfig(ctx context.Context, req resource.
255255
}
256256
return
257257
}
258-
if lbOptions.PrivateNetworkOnly == nil || *lbOptions.PrivateNetworkOnly == false {
258+
if lbOptions.PrivateNetworkOnly == nil || !*lbOptions.PrivateNetworkOnly {
259259
// private_network_only is not set or false and external_address is not set
260260
if !externalAddressIsSet {
261-
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring load balancer", fmt.Sprintf("You need to provide either the `options.private_network_only = true` or `external_address` field."))
261+
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring load balancer", "You need to provide either the `options.private_network_only = true` or `external_address` field.")
262262
}
263263
return
264264
}
265265

266266
// Both are set
267267
if *lbOptions.PrivateNetworkOnly && externalAddressIsSet {
268-
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring load balancer", fmt.Sprintf("You need to provide either the `options.private_network_only = true` or `external_address` field."))
268+
core.LogAndAddError(ctx, &resp.Diagnostics, "Error configuring load balancer", "You need to provide either the `options.private_network_only = true` or `external_address` field.")
269269
}
270270
}
271271

0 commit comments

Comments
 (0)