From c2628d8fae53d22599c7b368d21197aef7d589a2 Mon Sep 17 00:00:00 2001 From: Stephen Chu Date: Thu, 21 May 2015 20:16:01 +0000 Subject: [PATCH] Fixed some whitespacing issues. --- builtin/providers/aws/resource_aws_route53_zone.go | 8 ++++---- .../providers/aws/resource_aws_route53_zone_test.go | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) 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"