From cce82a2e17a48541aedb68a28b904b41bc93e313 Mon Sep 17 00:00:00 2001 From: Lang Martin Date: Mon, 31 Aug 2020 13:08:33 -0400 Subject: [PATCH] command/plugin_status_csi: plugin status :id keeps expected count --- command/plugin_status_csi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/plugin_status_csi.go b/command/plugin_status_csi.go index 36f1284bd11b..ad000414588b 100644 --- a/command/plugin_status_csi.go +++ b/command/plugin_status_csi.go @@ -95,9 +95,9 @@ func (c *PluginStatusCommand) csiFormatPlugin(plug *api.CSIPlugin) (string, erro fmt.Sprintf("Provider|%s", plug.Provider), fmt.Sprintf("Version|%s", plug.Version), fmt.Sprintf("Controllers Healthy|%d", plug.ControllersHealthy), - fmt.Sprintf("Controllers Expected|%d", len(plug.Controllers)), + fmt.Sprintf("Controllers Expected|%d", plug.ControllersExpected), fmt.Sprintf("Nodes Healthy|%d", plug.NodesHealthy), - fmt.Sprintf("Nodes Expected|%d", len(plug.Nodes)), + fmt.Sprintf("Nodes Expected|%d", plug.NodesExpected), } // Exit early