[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH] If the LV has no child, don't attempt to grab its format (#497239).
- From: David Lehman <dlehman redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [PATCH] If the LV has no child, don't attempt to grab its format (#497239).
- Date: Fri, 24 Apr 2009 13:10:04 -0500
On Fri, 2009-04-24 at 14:07 -0400, Chris Lumens wrote:
> ---
> iw/lvm_dialog_gui.py | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
Ack.
>
> diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
> index ef52903..f1c2596 100644
> --- a/iw/lvm_dialog_gui.py
> +++ b/iw/lvm_dialog_gui.py
> @@ -1291,7 +1291,10 @@ class VolumeGroupEditor:
> iter = self.logvolstore.append()
> self.logvolstore.set_value(iter, 0, lv.lvname)
> if lv.format.type == "luks":
> - format = self.storage.devicetree.getChildren(lv)[0].format
> + try:
> + format = self.storage.devicetree.getChildren(lv)[0].format
> + except IndexError:
> + format = lv.format
> else:
> format = lv.format
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]