a25a6f4296
- Fix getting PV info in LVMPhysicalVolume from the cache Resolves: rhbz#2079221 - Do not crash when changing disklabel on disks with active devices Resolves: rhbz#2078803 - ActionDestroyDevice should not obsolete ActionRemoveMember Resolves: rhbz#2076956 - Correctly set vg_name after adding/removing a PV from a VG Resolves: rhbz#2081278 - Add support for creating LVM cache pools Resolves: rhbz#2055200 - Use LVM PV format current_size in LVMVolumeGroupDevice._remove Related: rhbz#2081278
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From dc6350f87a1dacdebdbb9cf0be43699bb5f7eadd Mon Sep 17 00:00:00 2001
|
|
From: Vojtech Trefny <vtrefny@redhat.com>
|
|
Date: Mon, 16 Aug 2021 09:50:34 +0200
|
|
Subject: [PATCH] Fix getting PV info in LVMPhysicalVolume from the cache
|
|
|
|
"self.device" is string for formats so accessing "self.device.path"
|
|
results in an AttributeError.
|
|
|
|
Resolves: rhbz#2079221
|
|
---
|
|
blivet/formats/lvmpv.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/blivet/formats/lvmpv.py b/blivet/formats/lvmpv.py
|
|
index 3fef667e..483b53a4 100644
|
|
--- a/blivet/formats/lvmpv.py
|
|
+++ b/blivet/formats/lvmpv.py
|
|
@@ -197,7 +197,7 @@ class LVMPhysicalVolume(DeviceFormat):
|
|
if self.exists:
|
|
# we don't have any actual value, but the PV exists and is
|
|
# active, we should try to determine it
|
|
- pv_info = pvs_info.cache.get(self.device.path)
|
|
+ pv_info = pvs_info.cache.get(self.device)
|
|
if pv_info is None:
|
|
log.error("Failed to get free space information for the PV '%s'", self.device)
|
|
self._free = Size(0)
|
|
--
|
|
2.34.3
|
|
|