]> 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)
committerJan Fajerski <jfajerski@suse.com>
Wed, 9 Oct 2019 11:51:17 +0000 (13:51 +0200)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 2dc4f7de96e51c8117b719640ec4c09388a1412e)

src/ceph-volume/ceph_volume/api/lvm.py

index 92ac2c2283db0b87ce405a9ee5243e04594f13f0..016fa4cb565ec05698d2c455cd0dba1cd053a878 100644 (file)
@@ -708,8 +708,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