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