@@ -543,30 +543,30 @@ func flattenMap(m map[string]string) interface{} {
543
543
return flattenedMap
544
544
}
545
545
546
- func diffSuppressFuncDuration (k , old , new string , d * schema.ResourceData ) bool {
547
- if old == new {
546
+ func diffSuppressFuncDuration (k , oldValue , newValue string , d * schema.ResourceData ) bool {
547
+ if oldValue == newValue {
548
548
return true
549
549
}
550
- d1 , err1 := time .ParseDuration (old )
551
- d2 , err2 := time .ParseDuration (new )
550
+ d1 , err1 := time .ParseDuration (oldValue )
551
+ d2 , err2 := time .ParseDuration (newValue )
552
552
if err1 != nil || err2 != nil {
553
553
return false
554
554
}
555
555
return d1 == d2
556
556
}
557
557
558
- func diffSuppressFuncIgnoreCase (k , old , new string , d * schema.ResourceData ) bool {
559
- return strings .EqualFold (old , new )
558
+ func diffSuppressFuncIgnoreCase (k , oldValue , newValue string , d * schema.ResourceData ) bool {
559
+ return strings .EqualFold (oldValue , newValue )
560
560
}
561
561
562
- func diffSuppressFuncIgnoreCaseAndHyphen (k , old , new string , d * schema.ResourceData ) bool {
563
- return strings .Replace (strings .ToLower (old ), "-" , "_" , - 1 ) == strings .Replace (strings .ToLower (new ), "-" , "_" , - 1 )
562
+ func diffSuppressFuncIgnoreCaseAndHyphen (k , oldValue , newValue string , d * schema.ResourceData ) bool {
563
+ return strings .Replace (strings .ToLower (oldValue ), "-" , "_" , - 1 ) == strings .Replace (strings .ToLower (newValue ), "-" , "_" , - 1 )
564
564
}
565
565
566
566
// diffSuppressFuncLocality is a SuppressDiffFunc to remove the locality from an ID when checking diff.
567
567
// e.g. 2c1a1716-5570-4668-a50a-860c90beabf6 == fr-par-1/2c1a1716-5570-4668-a50a-860c90beabf6
568
- func diffSuppressFuncLocality (k , old , new string , d * schema.ResourceData ) bool {
569
- return expandID (old ) == expandID (new )
568
+ func diffSuppressFuncLocality (k , oldValue , newValue string , d * schema.ResourceData ) bool {
569
+ return expandID (oldValue ) == expandID (newValue )
570
570
}
571
571
572
572
// TimedOut returns true if the error represents a "wait timed out" condition.
0 commit comments