diff --git a/builtin/providers/aws/resource_aws_route53_zone.go b/builtin/providers/aws/resource_aws_route53_zone.go index 23fb7ed7e..cc44df7ab 100644 --- a/builtin/providers/aws/resource_aws_route53_zone.go +++ b/builtin/providers/aws/resource_aws_route53_zone.go @@ -66,10 +66,10 @@ func resourceAwsRoute53Zone() *schema.Resource { func resourceAwsRoute53ZoneCreate(d *schema.ResourceData, meta interface{}) error { r53 := meta.(*AWSClient).r53conn - comment := "Managed by Terraform" - if c := d.Get("comment"); c != "" { - comment = c.(string) - } + comment := "Managed by Terraform" + if c := d.Get("comment"); c != "" { + comment = c.(string) + } req := &route53.CreateHostedZoneInput{ Name: aws.String(d.Get("name").(string)), HostedZoneConfig: &route53.HostedZoneConfig{Comment: aws.String(comment)}, diff --git a/builtin/providers/aws/resource_aws_route53_zone_test.go b/builtin/providers/aws/resource_aws_route53_zone_test.go index e4070794c..9eb6c0baf 100644 --- a/builtin/providers/aws/resource_aws_route53_zone_test.go +++ b/builtin/providers/aws/resource_aws_route53_zone_test.go @@ -203,11 +203,11 @@ func testAccCheckRoute53ZoneExistsWithProvider(s *terraform.State, n string, zon return fmt.Errorf("Hosted zone err: %v", err) } - aws_comment := *resp.HostedZone.Config.Comment - rs_comment := rs.Primary.Attributes["comment"] - if rs_comment != "" && rs_comment != aws_comment { - return fmt.Errorf("Hosted zone with comment '%s' found but does not match '%s'", aws_comment, rs_comment) - } + aws_comment := *resp.HostedZone.Config.Comment + rs_comment := rs.Primary.Attributes["comment"] + if rs_comment != "" && rs_comment != aws_comment { + return fmt.Errorf("Hosted zone with comment '%s' found but does not match '%s'", aws_comment, rs_comment) + } if !*resp.HostedZone.Config.PrivateZone { sorted_ns := make([]string, len(resp.DelegationSet.NameServers)) @@ -278,7 +278,7 @@ func testAccLoadTagsR53(zone *route53.GetHostedZoneOutput, td *route53.ResourceT const testAccRoute53ZoneConfig = ` resource "aws_route53_zone" "main" { name = "hashicorp.com" - comment = "Custom comment" + comment = "Custom comment" tags { foo = "bar"