From 326e44c47f48273eaedff8626425f87773d03552 Mon Sep 17 00:00:00 2001 From: Abhinandan Purkait Date: Thu, 23 Nov 2023 11:34:53 +0530 Subject: [PATCH] fix(event): set replica count in action replacing wrong content (#185) Signed-off-by: Abhinandan Purkait --- pkg/driver/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/driver/controller.go b/pkg/driver/controller.go index e598b002..76da91ff 100644 --- a/pkg/driver/controller.go +++ b/pkg/driver/controller.go @@ -369,7 +369,7 @@ func sendEventOrIgnore(pvcName, pvName, capacity, replicaCount, stgType, method SetVolumeName(pvName). SetVolumeClaimName(pvcName). SetLabel(analytics.EventLabelCapacity). - SetAction(GetReplicaCount(stgType, method)). + SetAction(GetReplicaCount(replicaCount, method)). SetCategory(method). SetVolumeCapacity(capacity).Send() }