Skip to content

Commit

Permalink
Use Probe's property to lookup loadbalancer_id.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Kyrris committed Oct 18, 2016
1 parent e63d120 commit 4a22fa0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 4a22fa0

Please sign in to comment.