[PATCH] Use the PV name when logging error messages.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/devicetree.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 8c41c50..7540ff2 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1225,7 +1225,7 @@ class DeviceTree(object):
                 pe_free = udev_device_get_vg_free_extents(info)
                 pv_count = udev_device_get_vg_pv_count(info)
             except (KeyError, ValueError) as e:
-                log.warning("invalid data for %s: %s" % (name, e))
+                log.warning("invalid data for %s: %s" % (device.name, e))
                 return
 
             vg_device = LVMVolumeGroupDevice(vg_name,
@@ -1245,11 +1245,11 @@ class DeviceTree(object):
                 lv_uuids = udev_device_get_lv_uuids(info)
                 lv_sizes = udev_device_get_lv_sizes(info)
             except KeyError as e:
-                log.warning("invalid data for %s: %s" % (name, e))
+                log.warning("invalid data for %s: %s" % (device.name, e))
                 return
 
             if not lv_names:
-                log.debug("no LVs listed for VG %s" % name)
+                log.debug("no LVs listed for VG %s" % device.name)
                 return
 
             lvs = []
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux