From 26e8c88924b3d1c1b894af319cc98ca129bef3cd Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Thu, 3 Oct 2019 16:44:35 +0530 Subject: [PATCH] ceph-volume: allow creating empty PVolumes objects Signed-off-by: Rishabh Dave (cherry picked from commit 384aaee8fd2b0de7120e58efc3ebbd2a520d709f) --- 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..7f96771cb040c 100644 --- a/src/ceph-volume/ceph_volume/api/lvm.py +++ b/src/ceph-volume/ceph_volume/api/lvm.py @@ -911,8 +911,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 -- 2.39.5