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

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