github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/builtin/providers/alicloud/service_alicloud_slb.go (about) 1 package alicloud 2 3 import ( 4 "github.com/denverdino/aliyungo/slb" 5 ) 6 7 func (client *AliyunClient) DescribeLoadBalancerAttribute(slbId string) (*slb.LoadBalancerType, error) { 8 loadBalancer, err := client.slbconn.DescribeLoadBalancerAttribute(slbId) 9 if err != nil { 10 if notFoundError(err) { 11 return nil, nil 12 } 13 return nil, err 14 } 15 16 if loadBalancer != nil { 17 return loadBalancer, nil 18 } 19 20 return nil, nil 21 }