1.3.0
This commit is contained in:
@@ -33,16 +33,16 @@ func FlipgroupResource(ctx context.Context, plan *models.ResourceFLIPGroupModel,
|
||||
}
|
||||
|
||||
*plan = models.ResourceFLIPGroupModel{
|
||||
AccountID: plan.AccountID,
|
||||
Name: plan.Name,
|
||||
NetType: plan.NetType,
|
||||
NetID: plan.NetID,
|
||||
ClientType: plan.ClientType,
|
||||
AccountID: types.Int64Value(int64(recordFG.AccountID)),
|
||||
Name: types.StringValue(recordFG.Name),
|
||||
NetType: types.StringValue(recordFG.NetType),
|
||||
NetID: types.Int64Value(int64(recordFG.NetID)),
|
||||
ClientType: types.StringValue(recordFG.ClientType),
|
||||
Timeouts: plan.Timeouts,
|
||||
Description: plan.Description,
|
||||
ClientIDs: plan.ClientIDs,
|
||||
Description: types.StringValue(recordFG.Description),
|
||||
ClientIDs: flattens.FlattenSimpleTypeToList(ctx, types.Int64Type, recordFG.ClientIDs),
|
||||
ID: plan.ID,
|
||||
IP: plan.IP,
|
||||
IP: types.StringValue(recordFG.IP),
|
||||
|
||||
AccountName: types.StringValue(recordFG.AccountName),
|
||||
ConnID: types.Int64Value(int64(recordFG.ConnID)),
|
||||
@@ -69,10 +69,6 @@ func FlipgroupResource(ctx context.Context, plan *models.ResourceFLIPGroupModel,
|
||||
plan.IP = types.StringValue(recordFG.IP)
|
||||
}
|
||||
|
||||
if plan.ClientIDs.IsUnknown() {
|
||||
plan.ClientIDs = flattens.FlattenSimpleTypeToList(ctx, types.Int64Type, recordFG.ClientIDs)
|
||||
}
|
||||
|
||||
tflog.Info(ctx, "End flattens.FlipgroupResource", map[string]any{"flipgroup_id": plan.ID.ValueString()})
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user