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