From: Rishabh Dave Date: Thu, 3 Oct 2019 11:14:35 +0000 (+0530) Subject: ceph-volume: allow creating empty PVolumes objects X-Git-Tag: v15.1.0~1311^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=384aaee8fd2b0de7120e58efc3ebbd2a520d709f;p=ceph.git ceph-volume: allow creating empty PVolumes objects Signed-off-by: Rishabh Dave --- diff --git a/src/ceph-volume/ceph_volume/api/lvm.py b/src/ceph-volume/ceph_volume/api/lvm.py index f4f3d6cf5eb1..5e7c5013d196 100644 --- a/src/ceph-volume/ceph_volume/api/lvm.py +++ b/src/ceph-volume/ceph_volume/api/lvm.py @@ -913,8 +913,9 @@ class PVolumes(list): to filter them via keyword arguments. """ - def __init__(self): - self._populate() + def __init__(self, populate=True): + if populate: + self._populate() def _populate(self): # get all the pvs in the current system