Update block_device.go
This commit is contained in:
parent
fc837e3698
commit
392afa30cf
|
@ -37,14 +37,7 @@ func (bds BlockDevices) Prepare(ctx *interpolate.Context) (errs []error) {
|
||||||
|
|
||||||
for _, block := range bds {
|
for _, block := range bds {
|
||||||
|
|
||||||
for _, s := range []struct {
|
errs = append(errs, block.Tag.CopyOn(block.Tags)...)
|
||||||
tagMap awscommon.TagMap
|
|
||||||
kvs hcl2template.KeyValues
|
|
||||||
}{
|
|
||||||
{block.Tags, block.Tag},
|
|
||||||
} {
|
|
||||||
errs = append(errs, s.kvs.CopyOn(s.tagMap)...)
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := block.Prepare(ctx); err != nil {
|
if err := block.Prepare(ctx); err != nil {
|
||||||
errs = append(errs, err)
|
errs = append(errs, err)
|
||||||
|
|
Loading…
Reference in New Issue