summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlehman <dlehman>2007-02-02 19:32:22 +0000
committerdlehman <dlehman>2007-02-02 19:32:22 +0000
commit769b299caed8c506c53f67c8d68888aed1aac165 (patch)
tree572ec5fc0413a80afbfe589592a0197648b3362c
parent8b8760d863f4414cbbf6587eb5fe880b6671adef (diff)
downloadanaconda-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--ChangeLog5
-rw-r--r--partitions.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e3b489a5..b6bc3e021 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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"]):