providers/aws: fix placement group import
This commit is contained in:
parent
dc3163c464
commit
f64f470807
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue