Skip to content

Commit

Permalink
missing keyvaluetags for read
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Feb 14, 2020
1 parent 23c7d0a commit bfe7fe3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aws/resource_aws_ami.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,9 @@ func resourceAwsAmiRead(d *schema.ResourceData, meta interface{}) error {
d.Set("ebs_block_device", ebsBlockDevs)
d.Set("ephemeral_block_device", ephemeralBlockDevs)

d.Set("tags", tagsToMap(image.Tags))
if err := d.Set("tags", keyvaluetags.Ec2KeyValueTags(image.Tags).IgnoreAws().Map()); err != nil {
return fmt.Errorf("error setting tags: %s", err)
}

return nil
}
Expand Down

0 comments on commit bfe7fe3

Please sign in to comment.