]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: allow creating empty VolumeGroup objects
authorRishabh Dave <ridave@redhat.com>
Thu, 3 Oct 2019 12:10:37 +0000 (17:40 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 3 Oct 2019 13:30:14 +0000 (19:00 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/ceph-volume/ceph_volume/api/lvm.py

index f4f3d6cf5eb11421e1bb3b22b553e9a1e529d4d1..c3d0922018601b49f3a60c83ea94f17237cf3a7a 100644 (file)
@@ -710,8 +710,9 @@ class VolumeGroups(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 vgs in the current system