diff --git a/pkg/util/kube/utils.go b/pkg/util/kube/utils.go index 73603b059..d23597397 100644 --- a/pkg/util/kube/utils.go +++ b/pkg/util/kube/utils.go @@ -187,7 +187,7 @@ func isProvisionedByCSI(log logrus.FieldLogger, pv *corev1api.PersistentVolume, } for _, driver := range list.Items { if driverName == driver.Name || migratedDriver == driver.Name { - log.Debugf("the annotation %s or %s equals to %s indicates the volume is provisioned by a CSI driver", KubeAnnDynamicallyProvisioned, KubeAnnMigratedTo, driverName) + log.Debugf("the annotation %s or %s equals to %s indicates the volume is provisioned by a CSI driver", KubeAnnDynamicallyProvisioned, KubeAnnMigratedTo, driver.Name) return true, nil } }