provider/azurerm: move ConfigureFunc outside of Provider literal, fixes nil reference

TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMDnsARecord_basic -timeout 120m
=== RUN   TestAccAzureRMDnsARecord_basic
--- PASS: TestAccAzureRMDnsARecord_basic (91.92s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/azurerm	91.994s
This commit is contained in:
Peter McAtominey 2016-11-09 15:49:14 +00:00
parent 770bb4f18b
commit a23c5bda72
1 changed files with 2 additions and 1 deletions

View File

@ -107,9 +107,10 @@ func Provider() terraform.ResourceProvider {
"azurerm_sql_firewall_rule": resourceArmSqlFirewallRule(),
"azurerm_sql_server": resourceArmSqlServer(),
},
ConfigureFunc: providerConfigure(p),
}
p.ConfigureFunc = providerConfigure(p)
return p
}