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
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue