Use Probe's property to lookup loadbalancer_id.

This commit is contained in:
Andreas Kyrris 2016-10-17 17:52:25 +01:00
parent e63d120b57
commit 4a22fa0438
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ func resourceArmLoadBalancerProbeCreate(d *schema.ResourceData, meta interface{}
}
func resourceArmLoadBalancerProbeRead(d *schema.ResourceData, meta interface{}) error {
loadBalancer, exists, err := retrieveLoadBalancerById(d.Id(), meta)
loadBalancer, exists, err := retrieveLoadBalancerById(d.Get("loadbalancer_id").(string), meta)
if err != nil {
return errwrap.Wrapf("Error Getting LoadBalancer By ID {{err}}", err)
}