From 9da89974fccf1c5dfbbb5e642fdc666a8c8b859c Mon Sep 17 00:00:00 2001 From: Panagiotis Moustafellos Date: Fri, 8 May 2015 15:40:53 +0300 Subject: [PATCH] fix vpc_region param check --- .../providers/aws/resource_aws_route53_zone_association.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/aws/resource_aws_route53_zone_association.go b/builtin/providers/aws/resource_aws_route53_zone_association.go index 084246b75..eb2308320 100644 --- a/builtin/providers/aws/resource_aws_route53_zone_association.go +++ b/builtin/providers/aws/resource_aws_route53_zone_association.go @@ -51,7 +51,7 @@ func resourceAwsRoute53ZoneAssociationCreate(d *schema.ResourceData, meta interf }, 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)) } @@ -113,7 +113,7 @@ func resourceAwsRoute53ZoneAssociationDelete(d *schema.ResourceData, meta interf }, 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)) }