From 011b2f55ff9c6cc4e5bc44b8796d10c750d3a092 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Thu, 3 Oct 2019 17:40:37 +0530 Subject: [PATCH] ceph-volume: allow creating empty VolumeGroup objects Signed-off-by: Rishabh Dave (cherry picked from commit 2dc4f7de96e51c8117b719640ec4c09388a1412e) --- src/ceph-volume/ceph_volume/api/lvm.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ceph-volume/ceph_volume/api/lvm.py b/src/ceph-volume/ceph_volume/api/lvm.py index 92ac2c2283db0..016fa4cb565ec 100644 --- a/src/ceph-volume/ceph_volume/api/lvm.py +++ b/src/ceph-volume/ceph_volume/api/lvm.py @@ -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 -- 2.39.5