ran go fmt and made 1 fix after running tests again
This commit is contained in:
parent
34d2efa7df
commit
e4214a9983
|
@ -8,10 +8,10 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hashicorp/aws-sdk-go/aws"
|
"github.com/hashicorp/aws-sdk-go/aws"
|
||||||
|
"github.com/hashicorp/aws-sdk-go/gen/ec2"
|
||||||
"github.com/hashicorp/terraform/helper/hashcode"
|
"github.com/hashicorp/terraform/helper/hashcode"
|
||||||
"github.com/hashicorp/terraform/helper/resource"
|
"github.com/hashicorp/terraform/helper/resource"
|
||||||
"github.com/hashicorp/terraform/helper/schema"
|
"github.com/hashicorp/terraform/helper/schema"
|
||||||
"github.com/hashicorp/aws-sdk-go/gen/ec2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func resourceAwsNetworkInterface() *schema.Resource {
|
func resourceAwsNetworkInterface() *schema.Resource {
|
||||||
|
@ -125,7 +125,8 @@ func resourceAwsNetworkInterfaceRead(d *schema.ResourceData, meta interface{}) e
|
||||||
d.Set("security_groups", flattenGroupIdentifiers(eni.Groups))
|
d.Set("security_groups", flattenGroupIdentifiers(eni.Groups))
|
||||||
|
|
||||||
if eni.Attachment != nil {
|
if eni.Attachment != nil {
|
||||||
d.Set("attachment", flattenAttachment(eni.Attachment))
|
attachment := []map[string]interface{} { flattenAttachment(eni.Attachment) }
|
||||||
|
d.Set("attachment", attachment)
|
||||||
} else {
|
} else {
|
||||||
d.Set("attachment", nil)
|
d.Set("attachment", nil)
|
||||||
}
|
}
|
||||||
|
|
|
@ -162,7 +162,6 @@ func testAccCheckAWSENIDestroy(s *terraform.State) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const testAccAWSENIConfig = `
|
const testAccAWSENIConfig = `
|
||||||
resource "aws_vpc" "foo" {
|
resource "aws_vpc" "foo" {
|
||||||
cidr_block = "172.16.0.0/16"
|
cidr_block = "172.16.0.0/16"
|
||||||
|
|
Loading…
Reference in New Issue