Skip to content

Commit bf741fd

Browse files
hdurand0710Gopher Bot
authored andcommitted
BUG/MEDIUM: use Structured Backend API when Editing Backend
1 parent 90fa709 commit bf741fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hug/haproxy/api/backend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (c *clientNative) BackendCreate(backend models.Backend) error {
3535
errCreate := configuration.CreateStructuredBackend(b, c.activeTransaction, 0)
3636
if errCreate != nil {
3737
// ... maybe it's already existing, so just edit it.
38-
if err := configuration.EditBackend(backend.Name, &backend, c.activeTransaction, 0); err != nil {
38+
if err := configuration.EditStructuredBackend(backend.Name, &backend, c.activeTransaction, 0); err != nil {
3939
c.logger.LogAttrs(context.Background(), slog.LevelError, "failed to edit backend",
4040
logging.LogAttrError(err),
4141
slog.String("backend", backend.Name),

0 commit comments

Comments
 (0)