Blame SOURCES/0018-Fix-getting-PV-info-in-LVMPhysicalVolume-from-the-ca.patch

1c4b60
From dc6350f87a1dacdebdbb9cf0be43699bb5f7eadd Mon Sep 17 00:00:00 2001
1c4b60
From: Vojtech Trefny <vtrefny@redhat.com>
1c4b60
Date: Mon, 16 Aug 2021 09:50:34 +0200
1c4b60
Subject: [PATCH] Fix getting PV info in LVMPhysicalVolume from the cache
1c4b60
1c4b60
"self.device" is string for formats so accessing "self.device.path"
1c4b60
results in an AttributeError.
1c4b60
1c4b60
Resolves: rhbz#2079221
1c4b60
---
1c4b60
 blivet/formats/lvmpv.py | 2 +-
1c4b60
 1 file changed, 1 insertion(+), 1 deletion(-)
1c4b60
1c4b60
diff --git a/blivet/formats/lvmpv.py b/blivet/formats/lvmpv.py
1c4b60
index 3fef667e..483b53a4 100644
1c4b60
--- a/blivet/formats/lvmpv.py
1c4b60
+++ b/blivet/formats/lvmpv.py
1c4b60
@@ -197,7 +197,7 @@ class LVMPhysicalVolume(DeviceFormat):
1c4b60
             if self.exists:
1c4b60
                 # we don't have any actual value, but the PV exists and is
1c4b60
                 # active, we should try to determine it
1c4b60
-                pv_info = pvs_info.cache.get(self.device.path)
1c4b60
+                pv_info = pvs_info.cache.get(self.device)
1c4b60
                 if pv_info is None:
1c4b60
                     log.error("Failed to get free space information for the PV '%s'", self.device)
1c4b60
                     self._free = Size(0)
1c4b60
-- 
1c4b60
2.34.3
1c4b60