From 46d3ab5ccd253fc65c2adcf888e44f67f3c76ffc Mon Sep 17 00:00:00 2001 From: Luke Amdor Date: Wed, 15 Apr 2015 16:07:50 -0500 Subject: [PATCH] rename delegation_set_name_servers to name_servers --- builtin/providers/aws/resource_aws_route53_zone.go | 4 ++-- builtin/providers/aws/resource_aws_route53_zone_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/providers/aws/resource_aws_route53_zone.go b/builtin/providers/aws/resource_aws_route53_zone.go index f27617e9e..eabec81e8 100644 --- a/builtin/providers/aws/resource_aws_route53_zone.go +++ b/builtin/providers/aws/resource_aws_route53_zone.go @@ -32,7 +32,7 @@ func resourceAwsRoute53Zone() *schema.Resource { Computed: true, }, - "delegation_set_name_servers": &schema.Schema{ + "name_servers": &schema.Schema{ Type: schema.TypeList, Elem: &schema.Schema{Type: schema.TypeString}, Computed: true, @@ -98,7 +98,7 @@ func resourceAwsRoute53ZoneRead(d *schema.ResourceData, meta interface{}) error } ns := zone.DelegationSet.NameServers - if err := d.Set("delegation_set_name_servers", ns); err != nil { + if err := d.Set("name_servers", ns); err != nil { return fmt.Errorf("[DEBUG] Error setting name servers for: %s, error: %#v", d.Id(), err) } diff --git a/builtin/providers/aws/resource_aws_route53_zone_test.go b/builtin/providers/aws/resource_aws_route53_zone_test.go index a9b0225c7..dcadf575c 100644 --- a/builtin/providers/aws/resource_aws_route53_zone_test.go +++ b/builtin/providers/aws/resource_aws_route53_zone_test.go @@ -116,7 +116,7 @@ func testAccCheckRoute53ZoneExists(n string, zone *route53.HostedZone) resource. } for i, ns := range resp.DelegationSet.NameServers { - attribute := fmt.Sprintf("delegation_set_name_servers.%d", i) + attribute := fmt.Sprintf("name_servers.%d", i) dsns := rs.Primary.Attributes[attribute] if dsns != ns { return fmt.Errorf("Got: %v for %v, Expected: %v", dsns, attribute, ns)