diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-11-06 17:09:20 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-11-06 17:09:20 +0000 |
commit | ccb70997fd2599000d82e45dded702991a953b26 (patch) | |
tree | 4683c004edf2f5771ef13ace1faf4441674b32ac /partitions.py | |
parent | 5b1b2931464d51335d0a47847a7b9e75ad67ac85 (diff) | |
download | anaconda-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.py | 2 |
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 |