1.1.0
This commit is contained in:
@@ -196,13 +196,6 @@ func (r *resourceLB) Update(ctx context.Context, req resource.UpdateRequest, res
|
||||
}
|
||||
tflog.Info(ctx, "Update resourceLB: input checks successful", map[string]any{"ID": plan.ID.ValueString()})
|
||||
|
||||
// Read status lb and if it is necessary to restore it
|
||||
resp.Diagnostics.Append(utilities.LBReadStatus(ctx, &state, r.client)...)
|
||||
if resp.Diagnostics.HasError() {
|
||||
tflog.Error(ctx, "Error read status or restore")
|
||||
return
|
||||
}
|
||||
|
||||
// Update ha mode lb
|
||||
if !plan.HAMode.Equal(state.HAMode) && plan.HAMode.ValueBool() {
|
||||
resp.Diagnostics.Append(utilities.LBUpdateHaMode(ctx, &state, r.client)...)
|
||||
|
||||
Reference in New Issue
Block a user