summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2009-03-19 14:18:24 +0100
committerRadek Vykydal <rvykydal@redhat.com>2009-03-19 15:34:13 +0100
commitcfd858e8b36a6beef6b5f2da02d78c047128b880 (patch)
tree2ceb80d8ff43443c6e90fa47a380c9394b62bd96 /iw
parentd90a14bb68d03085cc71780e25d712296a685a89 (diff)
downloadanaconda-cfd858e8b36a6beef6b5f2da02d78c047128b880.tar.gz
anaconda-cfd858e8b36a6beef6b5f2da02d78c047128b880.tar.xz
anaconda-cfd858e8b36a6beef6b5f2da02d78c047128b880.zip
Fix New partition in UI
Pass format to new partition (request) so that it doesn't have to create DeviceFormat instance which tracebacks with: http://fpaste.org/paste/6475
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_dialog_gui.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index 5abbd512c..45d940958 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -159,16 +159,17 @@ class PartitionEditor:
if disk.name == drive:
disks.append(disk)
+ format = fmt_class(mountpoint=mountpoint)
if self.isNew:
request = self.storage.newPartition(size=size,
grow=grow,
maxsize=maxsize,
primary=primary,
+ format=format,
parents=disks)
else:
request = self.origrequest
- format = fmt_class(mountpoint=mountpoint)
if self.lukscb and self.lukscb.get_active() and \
request.format.type != "luks":
luksformat = format