rename delegation_set_name_servers to name_servers

This commit is contained in:
Luke Amdor 2015-04-15 16:07:50 -05:00
parent b763294926
commit 46d3ab5ccd
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ func resourceAwsRoute53Zone() *schema.Resource {
Computed: true, Computed: true,
}, },
"delegation_set_name_servers": &schema.Schema{ "name_servers": &schema.Schema{
Type: schema.TypeList, Type: schema.TypeList,
Elem: &schema.Schema{Type: schema.TypeString}, Elem: &schema.Schema{Type: schema.TypeString},
Computed: true, Computed: true,
@ -98,7 +98,7 @@ func resourceAwsRoute53ZoneRead(d *schema.ResourceData, meta interface{}) error
} }
ns := zone.DelegationSet.NameServers 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) return fmt.Errorf("[DEBUG] Error setting name servers for: %s, error: %#v", d.Id(), err)
} }

View File

@ -116,7 +116,7 @@ func testAccCheckRoute53ZoneExists(n string, zone *route53.HostedZone) resource.
} }
for i, ns := range resp.DelegationSet.NameServers { 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] dsns := rs.Primary.Attributes[attribute]
if dsns != ns { if dsns != ns {
return fmt.Errorf("Got: %v for %v, Expected: %v", dsns, attribute, ns) return fmt.Errorf("Got: %v for %v, Expected: %v", dsns, attribute, ns)