File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
pkg/translate/terraform_provider Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -514,7 +514,7 @@ func RenderLocationSchemaGetter(names *NameProvider, spec *properties.Normalizat
514
514
}
515
515
516
516
var attributes []attributeCtx
517
- for name , data := range spec .Locations {
517
+ for _ , data := range spec .Locations {
518
518
var schemaType string
519
519
if len (data .Vars ) == 0 {
520
520
schemaType = "rsschema.BoolAttribute"
@@ -523,9 +523,9 @@ func RenderLocationSchemaGetter(names *NameProvider, spec *properties.Normalizat
523
523
}
524
524
525
525
var variableAttrs []attributeCtx
526
- for variableName , variable := range data .Vars {
526
+ for _ , variable := range data .Vars {
527
527
attribute := attributeCtx {
528
- Name : variableName ,
528
+ Name : variable . Name . Underscore ,
529
529
Description : variable .Description ,
530
530
SchemaType : "rsschema.StringAttribute" ,
531
531
Required : false ,
@@ -547,7 +547,7 @@ func RenderLocationSchemaGetter(names *NameProvider, spec *properties.Normalizat
547
547
}
548
548
549
549
attribute := attributeCtx {
550
- Name : name ,
550
+ Name : data . Name . Underscore ,
551
551
SchemaType : schemaType ,
552
552
Description : data .Description ,
553
553
Required : false ,
You can’t perform that action at this time.
0 commit comments