From fe943b27d31d24429e7b9111a2cbc11fe1c2acec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bi=C3=A1n=20Tam=C3=A1s=20L=C3=A1szl=C3=B3?= Date: Mon, 4 Oct 2021 16:32:35 +0200 Subject: [PATCH] Rename "poolParamPool" to "poolname" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fábián Tamás László --- pkg/driver/controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/driver/controller.go b/pkg/driver/controller.go index 913b0df94..af1d28053 100644 --- a/pkg/driver/controller.go +++ b/pkg/driver/controller.go @@ -892,7 +892,7 @@ func (cs *controller) GetCapacity( // ZFS pool names. This is why it always returns the capacitry of the whole // pool, even if the child dataset given as the "poolname" parameter has a // smaller capacity than the whole pool. - poolParamPool, _ := func() (string, string) { + poolname, _ := func() (string, string) { poolParamSliced := strings.SplitN(poolParam, "/", 2) if len(poolParamSliced) == 2 { return poolParamSliced[0], poolParamSliced[1] @@ -917,7 +917,7 @@ func (cs *controller) GetCapacity( // See https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1472-storage-capacity-tracking#available-capacity-vs-maximum-volume-size & // https://github.com/container-storage-interface/spec/issues/432 for more details for _, zpool := range zfsNode.Pools { - if zpool.Name != poolParamPool { + if zpool.Name != poolname { continue } freeCapacity := zpool.Free.Value()