]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: allow creating empty PVolumes objects
authorRishabh Dave <ridave@redhat.com>
Thu, 3 Oct 2019 11:14:35 +0000 (16:44 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 3 Oct 2019 11:14:35 +0000 (16:44 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/ceph-volume/ceph_volume/api/lvm.py

index f4f3d6cf5eb11421e1bb3b22b553e9a1e529d4d1..5e7c5013d196786cd059c06f075930d9c8e8b1eb 100644 (file)
@@ -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