@@ -1407,13 +1407,13 @@ func mapFields(ctx context.Context, cl *ske.Cluster, m *Model, region string) er
1407
1407
return nil
1408
1408
}
1409
1409
1410
- func mapNodePools (ctx context.Context , cl * ske.Cluster , m * Model ) error {
1410
+ func mapNodePools (ctx context.Context , cl * ske.Cluster , model * Model ) error {
1411
1411
modelNodePoolOSVersion := map [string ]basetypes.StringValue {}
1412
1412
modelNodePoolOSVersionMin := map [string ]basetypes.StringValue {}
1413
1413
1414
1414
modelNodePools := []nodePool {}
1415
- if ! m .NodePools .IsNull () && ! m .NodePools .IsUnknown () {
1416
- diags := m .NodePools .ElementsAs (ctx , & modelNodePools , false )
1415
+ if ! model .NodePools .IsNull () && ! model .NodePools .IsUnknown () {
1416
+ diags := model .NodePools .ElementsAs (ctx , & modelNodePools , false )
1417
1417
if diags .HasError () {
1418
1418
return core .DiagsToError (diags )
1419
1419
}
@@ -1428,7 +1428,7 @@ func mapNodePools(ctx context.Context, cl *ske.Cluster, m *Model) error {
1428
1428
}
1429
1429
1430
1430
if cl .Nodepools == nil {
1431
- m .NodePools = types .ListNull (types.ObjectType {AttrTypes : nodePoolTypes })
1431
+ model .NodePools = types .ListNull (types.ObjectType {AttrTypes : nodePoolTypes })
1432
1432
return nil
1433
1433
}
1434
1434
@@ -1504,7 +1504,7 @@ func mapNodePools(ctx context.Context, cl *ske.Cluster, m *Model) error {
1504
1504
if diags .HasError () {
1505
1505
return core .DiagsToError (diags )
1506
1506
}
1507
- m .NodePools = nodePoolsTF
1507
+ model .NodePools = nodePoolsTF
1508
1508
return nil
1509
1509
}
1510
1510
0 commit comments