[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 09/14] doPartitioning() receives a Storage instance.
- From: David Cantrell <dcantrell redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH 09/14] doPartitioning() receives a Storage instance.
- Date: Sun, 1 Mar 2009 20:32:47 -1000
Modify this function to accept a Storage instance rather than an
Anaconda instance.
---
storage/partitioning.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/storage/partitioning.py b/storage/partitioning.py
index 17a1081..dd31b81 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -470,7 +470,7 @@ def getBestFreeSpaceRegion(disk, part_type, req_size,
return best_free
-def doPartitioning(anaconda):
+def doPartitioning(storage):
""" Allocate and grow partitions.
When this function returns without error, all PartitionDevice
@@ -481,10 +481,10 @@ def doPartitioning(anaconda):
Arguments:
- anaconda -- what else?
+ storage - Main anaconda Storage instance
"""
- storage = anaconda.id.storage
+ anaconda = storage.anaconda
disks = [d for d in storage.disks if d.name in storage.clearPartDisks]
partitions = storage.partitions
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]