rename delegation_set_name_servers to name_servers
This commit is contained in:
parent
b763294926
commit
46d3ab5ccd
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue