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

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