Use better variable naming.

This commit is contained in:
Andreas Kyrris 2016-10-18 10:44:15 +01:00
parent da12ed640a
commit 182ebf3abb
5 changed files with 15 additions and 15 deletions

View File

@ -101,9 +101,9 @@ func resourceArmLoadBalancerBackendAddressPoolCreate(d *schema.ResourceData, met
}
var pool_id string
for _, element := range *(*read.Properties).BackendAddressPools {
if *element.Name == d.Get("name").(string) {
pool_id = *element.ID
for _, BackendAddressPool := range *(*read.Properties).BackendAddressPools {
if *BackendAddressPool.Name == d.Get("name").(string) {
pool_id = *BackendAddressPool.ID
}
}

View File

@ -123,9 +123,9 @@ func resourceArmLoadBalancerNatPoolCreate(d *schema.ResourceData, meta interface
}
var natPool_id string
for _, element := range *(*read.Properties).InboundNatPools {
if *element.Name == d.Get("name").(string) {
natPool_id = *element.ID
for _, InboundNatPool := range *(*read.Properties).InboundNatPools {
if *InboundNatPool.Name == d.Get("name").(string) {
natPool_id = *InboundNatPool.ID
}
}

View File

@ -123,9 +123,9 @@ func resourceArmLoadBalancerNatRuleCreate(d *schema.ResourceData, meta interface
}
var natRule_id string
for _, element := range *(*read.Properties).InboundNatRules {
if *element.Name == d.Get("name").(string) {
natRule_id = *element.ID
for _, InboundNatRule := range *(*read.Properties).InboundNatRules {
if *InboundNatRule.Name == d.Get("name").(string) {
natRule_id = *InboundNatRule.ID
}
}

View File

@ -129,9 +129,9 @@ func resourceArmLoadBalancerProbeCreate(d *schema.ResourceData, meta interface{}
}
var createdProbe_id string
for _, element := range *(*read.Properties).Probes {
if *element.Name == d.Get("name").(string) {
createdProbe_id = *element.ID
for _, Probe := range *(*read.Properties).Probes {
if *Probe.Name == d.Get("name").(string) {
createdProbe_id = *Probe.ID
}
}

View File

@ -150,9 +150,9 @@ func resourceArmLoadBalancerRuleCreate(d *schema.ResourceData, meta interface{})
}
var rule_id string
for _, element := range *(*read.Properties).LoadBalancingRules {
if *element.Name == d.Get("name").(string) {
rule_id = *element.ID
for _, LoadBalancingRule := range *(*read.Properties).LoadBalancingRules {
if *LoadBalancingRule.Name == d.Get("name").(string) {
rule_id = *LoadBalancingRule.ID
}
}