Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Upgrading to v14.5 of the Azure/azure-sdk-for-go / v10.2 of Azure/go-autorest #1006

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
Setting the actual types
tombuildsstuff committed Mar 20, 2018
commit 6d6ebeea8d88a472467097fa78dff1488620da3b
6 changes: 4 additions & 2 deletions azurerm/resource_arm_dns_zone.go
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@ package azurerm
import (
"fmt"

"strconv"

"github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2016-04-01/dns"
"github.com/hashicorp/terraform/helper/schema"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/response"
@@ -104,8 +106,8 @@ func resourceArmDnsZoneRead(d *schema.ResourceData, meta interface{}) error {

d.Set("name", name)
d.Set("resource_group_name", resGroup)
d.Set("number_of_record_sets", resp.NumberOfRecordSets)
d.Set("max_number_of_record_sets", resp.MaxNumberOfRecordSets)
d.Set("number_of_record_sets", strconv.Itoa(int(*resp.NumberOfRecordSets)))
d.Set("max_number_of_record_sets", strconv.Itoa(int(*resp.MaxNumberOfRecordSets)))

nameServers := make([]string, 0, len(*resp.NameServers))
for _, ns := range *resp.NameServers {