summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-04-13 11:22:02 -0500
committerDavid Lehman <dlehman@redhat.com>2009-04-13 12:11:16 -0500
commite6ceaf3b26628249cf103d94efba611114da1ee3 (patch)
treeb380c020ad306c20d250222701f49f97eb405776 /iw
parent846b903fc72d66e82fe2d6642a2322aac8d941c7 (diff)
downloadanaconda-e6ceaf3b26628249cf103d94efba611114da1ee3.tar.gz
anaconda-e6ceaf3b26628249cf103d94efba611114da1ee3.tar.xz
anaconda-e6ceaf3b26628249cf103d94efba611114da1ee3.zip
Remove uncommitted new lv from dict on cancel.
Diffstat (limited to 'iw')
-rw-r--r--iw/lvm_dialog_gui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index 3e42e40e3..457361d9e 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -566,6 +566,8 @@ class VolumeGroupEditor:
while 1:
rc = dialog.run()
if rc == 2:
+ if isNew:
+ del self.lvs[lv['name']]
dialog.destroy()
return