Fix csi sanity check - DeleteSnapshot
* should succeed when an invalid snapshot id is used
```
Action [backupDelete] not available on [&{ collection map[self:http://longhorn-backend:9500/v1/backupvolumes] map[]}]
```
@@ -664,7 +664,7 @@ func (cs *ControllerServer) DeleteSnapshot(ctx context.Context, req *csi.DeleteS
return nil, status.Error(codes.Internal, err.Error())
}
- if backupVolume != nil {
+ if backupVolume != nil && backupVolume.Name != "" {
backupVolume, err = cs.apiClient.BackupVolume.ActionBackupDelete(backupVolume, &longhornclient.BackupInput{Name: backupName})
if err != nil {
return nil, status.Error(codes.Internal, err.Error())
