migtools / mig-controller

OpenShift Migration Controller
Apache License 2.0
22 stars 42 forks source link

Don't create DVM resource if no PVCs are present #1381

Closed awels closed 3 months ago

awels commented 3 months ago

in the migration plan and IndirectVolumeMigration is set to false.

Fixed hasDirectVolumes to properly return false when the list is empty. It was returning a pointer to the list before, and the list object was never nil and thus would never return false. Since slices are pointers already there was no need for a pointer to the slice.