Fix go vet error (#12839)

This commit is contained in:
Christoph Blecker 2017-03-18 05:33:05 -07:00 committed by Paul Stack
parent 1b4fda0e1e
commit bc4a3d62a5
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ func resourceAwsKmsKeyRead(d *schema.ResourceData, meta interface{}) error {
KeyId: metadata.KeyId, KeyId: metadata.KeyId,
}) })
if err != nil { if err != nil {
return fmt.Errorf("Failed to get KMS key tags (key: %s): %s", metadata.KeyId, err) return fmt.Errorf("Failed to get KMS key tags (key: %s): %s", d.Get("key_id").(string), err)
} }
d.Set("tags", tagsToMapKMS(tagList.Tags)) d.Set("tags", tagsToMapKMS(tagList.Tags))