command/plugin_status_csi: plugin status :id keeps expected count

This commit is contained in:
Lang Martin
2020-08-31 13:08:33 -04:00
committed by Lang Martin
parent 46d9cf4ee4
commit cce82a2e17

View File

@@ -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