]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: VolumeGroups.filter shouldn't purge itself
authorRishabh Dave <ridave@redhat.com>
Thu, 3 Oct 2019 12:09:37 +0000 (17:39 +0530)
committerJan Fajerski <jfajerski@suse.com>
Wed, 9 Oct 2019 11:51:40 +0000 (13:51 +0200)
commitda5471e240f96048e18454f3706b15a9e88ffd86
tree661c53b160f903a9435891884ee8897f18d6febc
parentd7a2fb846ebaa0c661bcd041a394450a3b93fed6
ceph-volume: VolumeGroups.filter shouldn't purge itself

VolumeGroups.filter remove VGs from the list that do no match filter.
Instead of doing that, return a new list that contains VGs that match
the fiter so that VolumeGroups object held by code calling it is not
modified.

Fixes: https://tracker.ceph.com/issues/42171
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 028757813282f764ebcce05572f9e4b76ea4e552)
src/ceph-volume/ceph_volume/api/lvm.py