diff options
author | David Lehman <dlehman@redhat.com> | 2009-03-11 21:30:26 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-03-11 21:32:35 -0500 |
commit | 78a6d26d2cc8b152efb9030faf2baf6089fb3ac0 (patch) | |
tree | c808925e87156aef76a9a4412714dfbdd2a74ff6 /iw/lvm_dialog_gui.py | |
parent | ff0c74b2e993277804b4f0e0f517211bca573820 (diff) | |
download | anaconda-78a6d26d2cc8b152efb9030faf2baf6089fb3ac0.tar.gz anaconda-78a6d26d2cc8b152efb9030faf2baf6089fb3ac0.tar.xz anaconda-78a6d26d2cc8b152efb9030faf2baf6089fb3ac0.zip |
Fix a few bugs in the lvm dialog. (#489022)
This time I left out the check prior to setting the vg name
as it should be unnecessary.
Diffstat (limited to 'iw/lvm_dialog_gui.py')
-rw-r--r-- | iw/lvm_dialog_gui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py index b3e210101..ad081b204 100644 --- a/iw/lvm_dialog_gui.py +++ b/iw/lvm_dialog_gui.py @@ -339,7 +339,7 @@ class VolumeGroupEditor: if include: partlist.append_row((device.name, size_string), selected) - if selected: + if selected and device not in self.vg.pvs: self.vg._addPV(device) return (partlist, sw) @@ -548,7 +548,7 @@ class VolumeGroupEditor: # yet if we have not hit 'OK' for the volume group creation if fmt_class().mountable and mountpoint: used = 0 - curmntpt = format.mountpoint + curmntpt = getattr(format, "mountpoint", None) for _lv in self.vg.lvs: if _lv.format.type == "luks": |