providers/aws: fix placement group import

This commit is contained in:
Mitchell Hashimoto 2016-05-16 10:38:53 -07:00
parent dc3163c464
commit f64f470807
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ func resourceAwsPlacementGroupCreate(d *schema.ResourceData, meta interface{}) e
func resourceAwsPlacementGroupRead(d *schema.ResourceData, meta interface{}) error { func resourceAwsPlacementGroupRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).ec2conn conn := meta.(*AWSClient).ec2conn
input := ec2.DescribePlacementGroupsInput{ input := ec2.DescribePlacementGroupsInput{
GroupNames: []*string{aws.String(d.Get("name").(string))}, GroupNames: []*string{aws.String(d.Id())},
} }
out, err := conn.DescribePlacementGroups(&input) out, err := conn.DescribePlacementGroups(&input)
if err != nil { if err != nil {