Skip to content

Commit bc83bc6

Browse files
committed
fix typo
1 parent db91f27 commit bc83bc6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

internal/convert/adv2v2.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func convertRepSpecs(resourceb *hclwrite.Body, diskSizeGB hclwrite.Tokens) error
8686
}
8787
if dConfig.IsPresent() {
8888
if len(collectBlocks(blockb, nConfig)) > 0 {
89-
return errDynamicBockAlone
89+
return errDynamicBlockAlone
9090
}
9191
transformReferences(dConfig.content.Body(), getResourceName(dConfig.block), nRegion)
9292
copyAttributesSorted(dConfig.content.Body(), dConfig.content.Body().Attributes())
@@ -133,7 +133,7 @@ func convertRepSpecsWithDynamicBlock(resourceb *hclwrite.Body, diskSizeGB hclwri
133133
return dynamicBlock{}, err
134134
}
135135
if len(collectBlocks(resourceb, nRepSpecs)) > 0 {
136-
return dynamicBlock{}, errDynamicBockAlone
136+
return dynamicBlock{}, errDynamicBlockAlone
137137
}
138138
transformReferences(dSpec.content.Body(), nRepSpecs, nSpec)
139139
dConfig, err := convertConfigsWithDynamicBlock(dSpec.content.Body(), diskSizeGB)
@@ -151,7 +151,7 @@ func convertConfigsWithDynamicBlock(specbSrc *hclwrite.Body, diskSizeGB hclwrite
151151
return dynamicBlock{}, err
152152
}
153153
if len(collectBlocks(specbSrc, nConfig)) > 0 {
154-
return dynamicBlock{}, errDynamicBockAlone
154+
return dynamicBlock{}, errDynamicBlockAlone
155155
}
156156
configBody := d.content.Body()
157157
transformReferences(configBody, getResourceName(d.block), nRegion)

internal/convert/clu2adv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func fillRepSpecsWithDynamicBlock(resourceb *hclwrite.Body, root attrVals) (dyna
226226
return dynamicBlock{}, err
227227
}
228228
if len(collectBlocks(resourceb, nRepSpecs)) > 0 {
229-
return dynamicBlock{}, errDynamicBockAlone
229+
return dynamicBlock{}, errDynamicBlockAlone
230230
}
231231
transformReferences(dSpec.content.Body(), nRepSpecs, nSpec)
232232
dConfig, err := fillConfigsWithDynamicRegion(dSpec.content.Body(), root, true)
@@ -247,7 +247,7 @@ func fillConfigsWithDynamicRegion(specbSrc *hclwrite.Body, root attrVals, change
247247
return dynamicBlock{}, err
248248
}
249249
if len(collectBlocks(specbSrc, nConfigSrc)) > 0 {
250-
return dynamicBlock{}, errDynamicBockAlone
250+
return dynamicBlock{}, errDynamicBlockAlone
251251
}
252252
repSpecb := hclwrite.NewEmptyFile().Body()
253253
if zoneName := hcl.GetAttrExpr(specbSrc.GetAttribute(nZoneName)); zoneName != "" {

internal/convert/shared.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
var (
14-
errDynamicBockAlone = errors.New("dynamic block must be the only block, see docs for more information")
14+
errDynamicBlockAlone = errors.New("dynamic block must be the only block, see docs for more information")
1515
)
1616

1717
// hasVariableNumShards checks if any block has a variable (non-literal) num_shards attribute

0 commit comments

Comments
 (0)