Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Masters Of The Universe (http://www.linux-archive.org/ubuntu-masters-universe/)
-   -   request.drive is a string, not a list in this instance. (http://www.linux-archive.org/ubuntu-masters-universe/244144-request-drive-string-not-list-instance.html)

David Cantrell 02-11-2009 11:54 PM

request.drive is a string, not a list in this instance.
 
---
autopart.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/autopart.py b/autopart.py
index 7230e9e..d78c4a0 100644
--- a/autopart.py
+++ b/autopart.py
@@ -1020,10 +1020,7 @@ def processPartitioning(diskset, requests, newParts):
elif request.preexist:
# we need to keep track of the max size of preexisting partitions
# FIXME: we should also get the max size for LVs at some point
- for drive in request.drive:
- part = diskset.disks[drive].getPartitionByPath("/dev/%s" % request.device)
- if part:
- break
+ part = diskset.disks[request.drive].getPartitionByPath("/dev/%s" % request.device)
request.maxResizeSize = part.getMaxAvailableSize(unit="MB")

## print("disk layout after everything is done")
--
1.6.1.3

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


All times are GMT. The time now is 07:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.