fix vpc_region param check

This commit is contained in:
Panagiotis Moustafellos 2015-05-08 15:40:53 +03:00 committed by John Engelman
parent d02e247fc7
commit 9da89974fc

View File

@ -51,7 +51,7 @@ func resourceAwsRoute53ZoneAssociationCreate(d *schema.ResourceData, meta interf
}, },
Comment: aws.String("Managed by Terraform"), Comment: aws.String("Managed by Terraform"),
} }
if w := d.Get("vpc_region"); w != nil { if w := d.Get("vpc_region"); w != "" {
req.VPC.VPCRegion = aws.String(w.(string)) req.VPC.VPCRegion = aws.String(w.(string))
} }
@ -113,7 +113,7 @@ func resourceAwsRoute53ZoneAssociationDelete(d *schema.ResourceData, meta interf
}, },
Comment: aws.String("Managed by Terraform"), Comment: aws.String("Managed by Terraform"),
} }
if w := d.Get("vpc_region"); w != nil { if w := d.Get("vpc_region"); w != "" {
req.VPC.VPCRegion = aws.String(w.(string)) req.VPC.VPCRegion = aws.String(w.(string))
} }