Skip to content

Commit fd27a06

Browse files
committed
rename PangoStructName to SdkStructName
1 parent 858c284 commit fd27a06

File tree

1 file changed

+3
-3
lines changed
  • pkg/translate/terraform_provider

1 file changed

+3
-3
lines changed

pkg/translate/terraform_provider/funcs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ type locationFieldCtx struct {
587587
type locationCtx struct {
588588
Name string
589589
TerraformStructName string
590-
PangoStructName string
590+
SdkStructName string
591591
IsBool bool
592592
Fields []locationFieldCtx
593593
}
@@ -606,7 +606,7 @@ func renderLocationsGetContext(names *NameProvider, spec *properties.Normalizati
606606
locations = append(locations, locationCtx{
607607
Name: location.Name.CamelCase,
608608
TerraformStructName: fmt.Sprintf("%s%sLocation", names.StructName, location.Name.CamelCase),
609-
PangoStructName: fmt.Sprintf("%s.%sLocation", names.PackageName, location.Name.CamelCase),
609+
SdkStructName: fmt.Sprintf("%s.%sLocation", names.PackageName, location.Name.CamelCase),
610610
IsBool: len(location.Vars) == 0,
611611
Fields: fields,
612612
})
@@ -655,7 +655,7 @@ if !state.Location.{{ .Name }}.IsNull() && state.Location.{{ .Name }}.ValueBool(
655655
}
656656
{{- else }}
657657
if state.Location.{{ .Name }} != nil {
658-
location := &{{ .PangoStructName }}{
658+
location := &{{ .SdkStructName }}{
659659
{{ $locationName := .Name }}
660660
{{- range .Fields }}
661661
{{ .Name }}: state.Location.{{ $locationName }}.{{ .Name }}.ValueString(),

0 commit comments

Comments
 (0)