[PATCH storage] Fix New partition in UI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pass format to new partition (request) so that it hasn't
to create DeviceFormat instance which tracebacks with:
http://fpaste.org/paste/6475
---
 iw/partition_dialog_gui.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index 5abbd51..45d9409 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
-- 
1.5.4.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux