Use better variable naming.
This commit is contained in:
parent
da12ed640a
commit
182ebf3abb
|
@ -101,9 +101,9 @@ func resourceArmLoadBalancerBackendAddressPoolCreate(d *schema.ResourceData, met
|
||||||
}
|
}
|
||||||
|
|
||||||
var pool_id string
|
var pool_id string
|
||||||
for _, element := range *(*read.Properties).BackendAddressPools {
|
for _, BackendAddressPool := range *(*read.Properties).BackendAddressPools {
|
||||||
if *element.Name == d.Get("name").(string) {
|
if *BackendAddressPool.Name == d.Get("name").(string) {
|
||||||
pool_id = *element.ID
|
pool_id = *BackendAddressPool.ID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -123,9 +123,9 @@ func resourceArmLoadBalancerNatPoolCreate(d *schema.ResourceData, meta interface
|
||||||
}
|
}
|
||||||
|
|
||||||
var natPool_id string
|
var natPool_id string
|
||||||
for _, element := range *(*read.Properties).InboundNatPools {
|
for _, InboundNatPool := range *(*read.Properties).InboundNatPools {
|
||||||
if *element.Name == d.Get("name").(string) {
|
if *InboundNatPool.Name == d.Get("name").(string) {
|
||||||
natPool_id = *element.ID
|
natPool_id = *InboundNatPool.ID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -123,9 +123,9 @@ func resourceArmLoadBalancerNatRuleCreate(d *schema.ResourceData, meta interface
|
||||||
}
|
}
|
||||||
|
|
||||||
var natRule_id string
|
var natRule_id string
|
||||||
for _, element := range *(*read.Properties).InboundNatRules {
|
for _, InboundNatRule := range *(*read.Properties).InboundNatRules {
|
||||||
if *element.Name == d.Get("name").(string) {
|
if *InboundNatRule.Name == d.Get("name").(string) {
|
||||||
natRule_id = *element.ID
|
natRule_id = *InboundNatRule.ID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -129,9 +129,9 @@ func resourceArmLoadBalancerProbeCreate(d *schema.ResourceData, meta interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
var createdProbe_id string
|
var createdProbe_id string
|
||||||
for _, element := range *(*read.Properties).Probes {
|
for _, Probe := range *(*read.Properties).Probes {
|
||||||
if *element.Name == d.Get("name").(string) {
|
if *Probe.Name == d.Get("name").(string) {
|
||||||
createdProbe_id = *element.ID
|
createdProbe_id = *Probe.ID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -150,9 +150,9 @@ func resourceArmLoadBalancerRuleCreate(d *schema.ResourceData, meta interface{})
|
||||||
}
|
}
|
||||||
|
|
||||||
var rule_id string
|
var rule_id string
|
||||||
for _, element := range *(*read.Properties).LoadBalancingRules {
|
for _, LoadBalancingRule := range *(*read.Properties).LoadBalancingRules {
|
||||||
if *element.Name == d.Get("name").(string) {
|
if *LoadBalancingRule.Name == d.Get("name").(string) {
|
||||||
rule_id = *element.ID
|
rule_id = *LoadBalancingRule.ID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue