summaryrefslogtreecommitdiffstats
path: root/platform.py
diff options
context:
space:
mode:
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"))