File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -188,18 +188,14 @@ func hasExpectedBlocksAsAttributes(resourceb *hclwrite.Body) bool {
188
188
return false
189
189
}
190
190
191
- func copyAttributesSorted (targetBody * hclwrite.Body , sourceAttrs map [string ]* hclwrite.Attribute ,
192
- transforms ... func (string ) string ) {
191
+ func copyAttributesSorted (targetBody * hclwrite.Body , sourceAttrs map [string ]* hclwrite.Attribute ) {
193
192
var names []string
194
193
for name := range sourceAttrs {
195
194
names = append (names , name )
196
195
}
197
196
slices .Sort (names )
198
197
for _ , name := range names {
199
198
expr := hcl .GetAttrExpr (sourceAttrs [name ])
200
- for _ , transform := range transforms {
201
- expr = transform (expr )
202
- }
203
199
targetBody .SetAttributeRaw (name , hcl .TokensFromExpr (expr ))
204
200
}
205
201
}
You can’t perform that action at this time.
0 commit comments