diff options
author | dlehman <dlehman> | 2007-02-02 19:32:22 +0000 |
---|---|---|
committer | dlehman <dlehman> | 2007-02-02 19:32:22 +0000 |
commit | 769b299caed8c506c53f67c8d68888aed1aac165 (patch) | |
tree | 572ec5fc0413a80afbfe589592a0197648b3362c | |
parent | 8b8760d863f4414cbbf6587eb5fe880b6671adef (diff) | |
download | anaconda-769b299caed8c506c53f67c8d68888aed1aac165.tar.gz anaconda-769b299caed8c506c53f67c8d68888aed1aac165.tar.xz anaconda-769b299caed8c506c53f67c8d68888aed1aac165.zip |
* partitions.py (sanityCheckAllRequests): handle the case of
request.drive being None (#227045)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | partitions.py | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2007-02-02 Dave Lehman <dlehman@redhat.com> + + * partitions.py (sanityCheckAllRequests): handle the case of + request.drive being None (#227045) + 2007-01-31 Peter Jones <pjones@redhat.com> * anaconda.spec: Bump version. diff --git a/partitions.py b/partitions.py index bb5377a4e..e276baf32 100644 --- a/partitions.py +++ b/partitions.py @@ -843,7 +843,7 @@ class Partitions: rc = request.sanityCheckRaid(self) if rc: errors.append(rc) - if not hasattr(request,'drive'): + if not getattr(request, 'drive', None): continue for x in request.drive: if isys.driveUsesModule(x, ["usb-storage", "ub"]): |