This commit is contained in:
asteam
2025-07-01 13:44:09 +03:00
parent 5382579a5f
commit ddbb12996d
1041 changed files with 2842 additions and 96448 deletions

View File

@@ -27,11 +27,11 @@ func LBResource(ctx context.Context, plan *models.ResourceLBModel, c *client.Cli
acl, _ := json.Marshal(recordItemLB.ACL)
*plan = models.ResourceLBModel{
RGID: plan.RGID,
Name: plan.Name,
ExtNetID: plan.ExtNetID,
VINSID: plan.VINSID,
Start: plan.Start,
RGID: types.Int64Value(int64(recordItemLB.RGID)),
Name: types.StringValue(recordItemLB.Name),
ExtNetID: types.Int64Value(int64(recordItemLB.ExtNetID)),
VINSID: types.Int64Value(int64(recordItemLB.VINSID)),
Start: types.BoolValue(recordItemLB.TechStatus == "STARTED"),
ID: plan.ID,
HAMode: types.BoolValue(recordItemLB.HAMode),
@@ -41,7 +41,7 @@ func LBResource(ctx context.Context, plan *models.ResourceLBModel, c *client.Cli
Permanently: plan.Permanently,
Restore: plan.Restore,
Restart: plan.Restart,
Enable: plan.Enable,
Enable: types.BoolValue(recordItemLB.Status == "ENABLED"),
ConfigReset: plan.ConfigReset,
ACL: types.StringValue(string(acl)),