summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-11-06 17:09:20 +0000
committerJeremy Katz <katzj@redhat.com>2003-11-06 17:09:20 +0000
commitccb70997fd2599000d82e45dded702991a953b26 (patch)
tree4683c004edf2f5771ef13ace1faf4441674b32ac /partitions.py
parent5b1b2931464d51335d0a47847a7b9e75ad67ac85 (diff)
downloadanaconda-ccb70997fd2599000d82e45dded702991a953b26.tar.gz
anaconda-ccb70997fd2599000d82e45dded702991a953b26.tar.xz
anaconda-ccb70997fd2599000d82e45dded702991a953b26.zip
avoid trying to remove a raid minor more than once
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/partitions.py b/partitions.py
index f02678f20..3e2ec72bf 100644
--- a/partitions.py
+++ b/partitions.py
@@ -427,7 +427,7 @@ class Partitions:
"""Find and return a list of all of the unused minors for use in RAID."""
raidMinors = range(0,32)
for request in self.requests:
- if isinstance(request, partRequests.RaidRequestSpec):
+ if isinstance(request, partRequests.RaidRequestSpec) and request.raidminor in raidMinors:
raidMinors.remove(request.raidminor)
return raidMinors