Update block_device.go

This commit is contained in:
Adrien Delorme 2020-03-16 12:37:36 +01:00
parent fc837e3698
commit 392afa30cf
1 changed files with 1 additions and 8 deletions

View File

@ -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)