[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
PATCH[1/2] storage-branch: PV's may not have a uuid and / or a pe_start
- From: Hans de Goede <hdegoede redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: PATCH[1/2] storage-branch: PV's may not have a uuid and / or a pe_start
- Date: Sun, 01 Mar 2009 00:05:58 +0100
PV's which do not belong to any VG do not have a uuid or a pe_start, this
patch stops us from backtracing when this happens.
---
storage/devicetree.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/storage/devicetree.py b/storage/devicetree.py
index cdd41f0..b851d77 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -629,8 +629,14 @@ class DeviceTree(object):
kwargs["vgName"] = udev_device_get_vg_name(info)
except KeyError as e:
log.debug("PV %s has no vg_name" % name)
- kwargs["vgUuid"] = udev_device_get_vg_uuid(info)
- kwargs["peStart"] = udev_device_get_pv_pe_start(info)
+ try:
+ kwargs["vgUuid"] = udev_device_get_vg_uuid(info)
+ except KeyError as e:
+ log.debug("PV %s has no vg_uuid" % name)
+ try:
+ kwargs["peStart"] = udev_device_get_pv_pe_start(info)
+ except KeyError as e:
+ log.debug("PV %s has no pe_start" % name)
format = formats.getFormat(*args, **kwargs)
device.format = format
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]