From: Rishabh Dave Date: Thu, 3 Oct 2019 12:10:37 +0000 (+0530) Subject: ceph-volume: allow creating empty VolumeGroup objects X-Git-Tag: v13.2.7~52^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d7a2fb846ebaa0c661bcd041a394450a3b93fed6;p=ceph.git ceph-volume: allow creating empty VolumeGroup objects Signed-off-by: Rishabh Dave (cherry picked from commit 2dc4f7de96e51c8117b719640ec4c09388a1412e) --- diff --git a/src/ceph-volume/ceph_volume/api/lvm.py b/src/ceph-volume/ceph_volume/api/lvm.py index 949d614252bf..48d5e5bf47ae 100644 --- a/src/ceph-volume/ceph_volume/api/lvm.py +++ b/src/ceph-volume/ceph_volume/api/lvm.py @@ -680,8 +680,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