[PATCH 02/16] There's no need to pass exclusiveDisks to doPartitioning separately.

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

 



We alread pass a Storage instance which includes this information.
---
 pyanaconda/storage/partitioning.py |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
index c0bfd82..fb730b4 100644
--- a/pyanaconda/storage/partitioning.py
+++ b/pyanaconda/storage/partitioning.py
@@ -216,8 +216,7 @@ def doAutoPartition(anaconda):
 
     # run the autopart function to allocate and grow partitions
     try:
-        doPartitioning(anaconda.storage,
-                       exclusiveDisks=anaconda.storage.config.exclusiveDisks)
+        doPartitioning(anaconda.storage)
 
         if anaconda.storage.doAutoPart:
             _scheduleLVs(anaconda, devs)
@@ -804,7 +803,7 @@ def getFreeRegions(disks):
 
     return free
 
-def doPartitioning(storage, exclusiveDisks=None):
+def doPartitioning(storage):
     """ Allocate and grow partitions.
 
         When this function returns without error, all PartitionDevice
@@ -817,15 +816,11 @@ def doPartitioning(storage, exclusiveDisks=None):
 
             storage - Main anaconda Storage instance
 
-        Keyword arguments:
-
-            exclusiveDisks -- list of names of disks to use
-
     """
     anaconda = storage.anaconda
     disks = storage.partitioned
-    if exclusiveDisks:
-        disks = [d for d in disks if d.name in exclusiveDisks]
+    if storage.config.exclusiveDisks:
+        disks = [d for d in disks if d.name in storage.config.exclusiveDisks]
 
     for disk in disks:
         disk.setup()
-- 
1.7.3.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