Merge pull request #5075 from uber/fix-issue-4895

provider/google: Fix google_compute_backend_service max_utilization backend attribute
This commit is contained in:
James Nugent 2016-02-12 13:15:48 -08:00
commit 636f05a941
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ BUG FIXES:
* provider/aws: Fix reading auto scaling group load balancers [GH-5045] * provider/aws: Fix reading auto scaling group load balancers [GH-5045]
* provider/aws: Fix reading auto scaling group availability zones [GH-5044] * provider/aws: Fix reading auto scaling group availability zones [GH-5044]
* provider/docker: Fix the default docker_host value [GH-5088] * provider/docker: Fix the default docker_host value [GH-5088]
* provider/google: Fix backend service max_utilization attribute [GH-5075]
## 0.6.11 (February 1, 2016) ## 0.6.11 (February 1, 2016)

View File

@ -300,7 +300,7 @@ func expandBackends(configured []interface{}) []*compute.Backend {
if v, ok := data["max_rate_per_instance"]; ok { if v, ok := data["max_rate_per_instance"]; ok {
b.MaxRatePerInstance = v.(float64) b.MaxRatePerInstance = v.(float64)
} }
if v, ok := data["max_rate_per_instance"]; ok { if v, ok := data["max_utilization"]; ok {
b.MaxUtilization = v.(float64) b.MaxUtilization = v.(float64)
} }