diff --git a/src/controllers/csi/driver/volumes/app/publisher.go b/src/controllers/csi/driver/volumes/app/publisher.go index 79a89d8632..7cc8012127 100644 --- a/src/controllers/csi/driver/volumes/app/publisher.go +++ b/src/controllers/csi/driver/volumes/app/publisher.go @@ -97,7 +97,7 @@ func (publisher *AppVolumePublisher) UnpublishVolume(ctx context.Context, volume } log.Info("loaded volume info", "id", volume.VolumeID, "pod name", volume.PodName, "version", volume.Version, "dynakube", volume.TenantUUID) - if volume.MountAttempts > 0 { + if volume.Version == "" { log.Info("requester has a dummy volume, no node-level unmount is needed") return &csi.NodeUnpublishVolumeResponse{}, publisher.db.DeleteVolume(ctx, volume.VolumeID) }