[PATCH 11/13] Only append free space part if we have one.

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

 



When building the list of free space partitions, only append to
the list if we were able to find a partition.
---
 storage/partitioning.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index f4c40f2..47800da 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -69,8 +69,9 @@ def _createFreeSpacePartitions(anaconda):
                                                 size=1,
                                                 grow=True,
                                                 disks=[disk])
-        anaconda.id.storage.createDevice(part)
-        devs.append(part)
+        if part:
+            anaconda.id.storage.createDevice(part)
+            devs.append(part)
 
     return (disks, devs)
 
-- 
1.6.2

_______________________________________________
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