minor style cleanups
This commit is contained in:
parent
ddc2d8de2e
commit
0fbd701ccb
|
@ -72,12 +72,12 @@ func resourceAwsVpcCreate(d *schema.ResourceData, meta interface{}) error {
|
||||||
// Create the VPC
|
// Create the VPC
|
||||||
createOpts := &ec2.CreateVPCRequest{
|
createOpts := &ec2.CreateVPCRequest{
|
||||||
CIDRBlock: aws.String(d.Get("cidr_block").(string)),
|
CIDRBlock: aws.String(d.Get("cidr_block").(string)),
|
||||||
InstanceTenancy: &instance_tenancy,
|
InstanceTenancy: aws.String(instance_tenancy),
|
||||||
}
|
}
|
||||||
log.Printf("[DEBUG] VPC create config: %#v", *createOpts)
|
log.Printf("[DEBUG] VPC create config: %#v", *createOpts)
|
||||||
vpcResp, err := ec2conn.CreateVPC(createOpts)
|
vpcResp, err := ec2conn.CreateVPC(createOpts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Error creating VPC: %s : %s", err)
|
return fmt.Errorf("Error creating VPC: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the ID and store it
|
// Get the ID and store it
|
||||||
|
@ -133,8 +133,8 @@ func resourceAwsVpcRead(d *schema.ResourceData, meta interface{}) error {
|
||||||
// Attributes
|
// Attributes
|
||||||
attribute := "enableDnsSupport"
|
attribute := "enableDnsSupport"
|
||||||
DescribeAttrOpts := &ec2.DescribeVPCAttributeRequest{
|
DescribeAttrOpts := &ec2.DescribeVPCAttributeRequest{
|
||||||
Attribute: &attribute,
|
Attribute: aws.String(attribute),
|
||||||
VPCID: &vpcid,
|
VPCID: aws.String(vpcid),
|
||||||
}
|
}
|
||||||
resp, err := ec2conn.DescribeVPCAttribute(DescribeAttrOpts)
|
resp, err := ec2conn.DescribeVPCAttribute(DescribeAttrOpts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue