diff options
author | Andrew Schoen <aschoen@redhat.com> | 2018-08-21 19:13:08 +0200 |
---|---|---|
committer | Alfredo Deza <adeza@redhat.com> | 2018-08-24 16:18:04 +0200 |
commit | 9b4f9471ed258bc5a06ec48e1d2ebd56f02a68cd (patch) | |
tree | 0402760fd57faf6af49006d80a5b28fe828b1c91 /src/ceph-volume | |
parent | ceph-volume: tests for util.device.Device (diff) | |
download | ceph-9b4f9471ed258bc5a06ec48e1d2ebd56f02a68cd.tar.xz ceph-9b4f9471ed258bc5a06ec48e1d2ebd56f02a68cd.zip |
ceph-volume: device.Device should ignore pvs with no vg_name
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Diffstat (limited to 'src/ceph-volume')
-rw-r--r-- | src/ceph-volume/ceph_volume/util/device.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ceph-volume/ceph_volume/util/device.py b/src/ceph-volume/ceph_volume/util/device.py index 2c85c56b897..7dca60a49ae 100644 --- a/src/ceph-volume/ceph_volume/util/device.py +++ b/src/ceph-volume/ceph_volume/util/device.py @@ -55,7 +55,7 @@ class Device(object): if not pvs: self._is_lvm_member = False return self._is_lvm_member - has_vgs = [pv.vg_name for pv in pvs] + has_vgs = [pv.vg_name for pv in pvs if pv.vg_name] if has_vgs: self._is_lvm_member = True self.pvs_api = pvs |