From 0cf34080c1aa236ac4fa2a1ef695269f1e4ebf51 Mon Sep 17 00:00:00 2001 From: Jonathan Gnagy Date: Fri, 4 Jan 2019 19:58:43 -0700 Subject: [PATCH] Using Replicas for AvailableReplicas Switching to `Replicas` for `AvailableReplicas`. Signed-off-by: Jonathan Gnagy --- handlers/replicas.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/replicas.go b/handlers/replicas.go index 9018bba..4af805e 100644 --- a/handlers/replicas.go +++ b/handlers/replicas.go @@ -85,7 +85,7 @@ func MakeReplicaReader(client rancher.BridgeClient) VarsHandler { return } - found.AvailableReplicas = 1 + found.AvailableReplicas = found.Replicas functionBytes, _ := json.Marshal(found) w.Header().Set("Content-Type", "application/json")