1.3.0
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user