From dc6350f87a1dacdebdbb9cf0be43699bb5f7eadd Mon Sep 17 00:00:00 2001 From: Vojtech Trefny 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