From 6fa4fba83ec20b312672b705ee3e86f844b266f3 Mon Sep 17 00:00:00 2001 From: Bill Fumerola Date: Wed, 3 Feb 2016 19:06:32 -0800 Subject: [PATCH] provider/google Fix backend service max_utilization attribute Fixes issue #4985 by correcting copy/paste error that caused the max_utilization attribute to be read from the max_rate_per_instance attribute. N.B. There is still no test coverage for this issue. --- CHANGELOG.md | 1 + builtin/providers/google/resource_compute_backend_service.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0eadab077..1604df3a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ BUG FIXES: * provider/cloudflare: `ttl` no longer shows a change on each plan on `cloudflare_record` resources [GH-5042] * provider/aws: Fix reading auto scaling group load balancers [GH-5045] * provider/aws: Fix reading auto scaling group availability zones [GH-5044] + * provider/google: Fix backend service max_utilization attribute [GH-4895] ## 0.6.11 (February 1, 2016) diff --git a/builtin/providers/google/resource_compute_backend_service.go b/builtin/providers/google/resource_compute_backend_service.go index e4c1586d7..2159073c2 100644 --- a/builtin/providers/google/resource_compute_backend_service.go +++ b/builtin/providers/google/resource_compute_backend_service.go @@ -300,7 +300,7 @@ func expandBackends(configured []interface{}) []*compute.Backend { if v, ok := data["max_rate_per_instance"]; ok { b.MaxRatePerInstance = v.(float64) } - if v, ok := data["max_rate_per_instance"]; ok { + if v, ok := data["max_utilization"]; ok { b.MaxUtilization = v.(float64) }