summaryrefslogtreecommitdiffstats
path: root/platform.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-02-08 14:59:57 +0100
committerHans de Goede <hdegoede@redhat.com>2010-02-09 10:43:38 +0100
commitbe20d27eedc83c4efa6033f96d1ac8ea38fb6660 (patch)
tree5aa584fadffdefee49c08a201b76f5c732e8f6fb /platform.py
parente72586b6bd906af32b42aee5c98a06acf539e3b9 (diff)
downloadanaconda-be20d27eedc83c4efa6033f96d1ac8ea38fb6660.tar.gz
anaconda-be20d27eedc83c4efa6033f96d1ac8ea38fb6660.tar.xz
anaconda-be20d27eedc83c4efa6033f96d1ac8ea38fb6660.zip
platform.checkBootRequest(): Fix use of map instead of filter
Diffstat (limited to 'platform.py')
-rw-r--r--platform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform.py b/platform.py
index fe9e57ee6..16e9df99c 100644
--- a/platform.py
+++ b/platform.py
@@ -140,7 +140,7 @@ class Platform(object):
errors.append(_("Bootable partitions cannot be on an encrypted block device"))
else:
# Handle encrypted boot on more complicated devices.
- for dev in map(lambda d: d.type == "luks/dm-crypt", self.anaconda.storage.devices):
+ for dev in filter(lambda d: d.type == "luks/dm-crypt", self.anaconda.storage.devices):
if req in self.anaconda.storage.deviceDeps(dev):
errors.append(_("Bootable partitions cannot be on an encrypted block device"))