Skip to content

Commit 6d32f6c

Browse files
author
Marcel Tyszkiewicz
committed
remove function arg
1 parent 1bc6a3f commit 6d32f6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

castai/resource_workload_scaling_policy.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ It can be either:
243243
Type: schema.TypeList,
244244
Optional: true,
245245
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
246-
return suppressApplyTypeDefaultValueDiff(FieldMemoryEvent, old, new, d)
246+
return suppressMemoryEventApplyTypeDefaultValueDiff(old, new, d)
247247
},
248248
MaxItems: 1,
249249
Elem: &schema.Resource{
@@ -1041,9 +1041,9 @@ func suppressConfidenceThresholdDefaultValueDiff(resource, oldValue, newValue st
10411041
return oldValue == newValue
10421042
}
10431043

1044-
func suppressApplyTypeDefaultValueDiff(resource, oldValue, newValue string, d *schema.ResourceData) bool {
1044+
func suppressMemoryEventApplyTypeDefaultValueDiff(oldValue, newValue string, d *schema.ResourceData) bool {
10451045
if isEmpty(newValue) {
1046-
applyType := d.Get(fmt.Sprintf("%s.0.%s", resource, FieldApplyType))
1046+
applyType := d.Get(fmt.Sprintf("%s.0.%s", FieldMemoryEvent, FieldApplyType))
10471047
// Suppress diff if apply type saved from API equals to default
10481048
return applyType == defaultApplyType
10491049
}

0 commit comments

Comments
 (0)