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 _, s := range []struct {
|
||||
tagMap awscommon.TagMap
|
||||
kvs hcl2template.KeyValues
|
||||
}{
|
||||
{block.Tags, block.Tag},
|
||||
} {
|
||||
errs = append(errs, s.kvs.CopyOn(s.tagMap)...)
|
||||
}
|
||||
errs = append(errs, block.Tag.CopyOn(block.Tags)...)
|
||||
|
||||
if err := block.Prepare(ctx); err != nil {
|
||||
errs = append(errs, err)
|
||||
|
|
Loading…
Reference in New Issue