Skip to content

Commit 206bfe6

Browse files
committed
rebase
1 parent c6ac443 commit 206bfe6

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

mmv1/third_party/terraform/services/compute/compute_instance_helpers.go.tmpl

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ func expandGracefulShutdownMaxDuration(v interface{}) (map[string]interface{}, e
374374
if transformedNanos := maxDurationMap["nanos"]; reflect.ValueOf(transformedNanos).IsValid() && !tpgresource.IsEmptyValue(reflect.ValueOf(transformedNanos)) {
375375
result["nanos"] = int64(transformedNanos.(int))
376376
}
377-
// Seconds was in ForceSendFields — always include even when zero
378377
result["seconds"] = int64(maxDurationMap["seconds"].(int))
379378

380379
return result, nil
@@ -784,22 +783,6 @@ func getInterfaceSlice(v interface{}) []interface{} {
784783
return s
785784
}
786785

787-
func getInt(v interface{}) int64 {
788-
switch t := v.(type) {
789-
case int:
790-
return int64(t)
791-
case int64:
792-
return t
793-
case float64:
794-
return int64(t)
795-
case string:
796-
i, _ := strconv.ParseInt(t, 10, 64)
797-
return i
798-
default:
799-
return 0
800-
}
801-
}
802-
803786
{{ if ne $.TargetVersionName `ga` -}}
804787
// firstAccessConfigSecurityPolicy returns the securityPolicy of the first
805788
// access config in the list, or "" if absent.

0 commit comments

Comments
 (0)