Skip to content

Commit db3fdcc

Browse files
committed
Add BalanceField to backend section request payload
This change includes the BalanceField in the data sent when updating backend section configuration for HAProxy. It ensures that the balance configuration is correctly transmitted through the API request.
1 parent 5978652 commit db3fdcc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roxywi/resource_roxywi_haproxy_section_backend.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ func resourceHaproxySectionBackendUpdate(ctx context.Context, d *schema.Resource
377377
ForwardForField: d.Get(ForwardForField),
378378
SslOffloadingField: d.Get(SslOffloadingField),
379379
RedisPatchField: d.Get(RedisPatchField),
380+
BalanceField: d.Get(BalanceField),
380381
}
381382

382383
_, err := client.doRequest("PUT", fmt.Sprintf("api/service/haproxy/%d/section/backend/%s", serverId, sectionName), requestBody)

0 commit comments

Comments
 (0)