diff --git a/pkg/gce-pd-csi-driver/controller.go b/pkg/gce-pd-csi-driver/controller.go index b2157960f..195b79c64 100644 --- a/pkg/gce-pd-csi-driver/controller.go +++ b/pkg/gce-pd-csi-driver/controller.go @@ -283,7 +283,6 @@ func (gceCS *GCEControllerServer) CreateVolume(ctx context.Context, req *csi.Cre // Validate if disk already exists existingDisk, err := gceCS.CloudProvider.GetDisk(ctx, gceCS.CloudProvider.GetDefaultProject(), volKey, gceAPIVersion) - diskTypeForMetric = metrics.GetDiskType(existingDisk) if err != nil { if !gce.IsGCEError(err, "notFound") { return nil, common.LoggedError("CreateVolume, failed to getDisk when validating: ", err)