diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-02-08 14:59:57 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-02-09 10:43:38 +0100 |
commit | be20d27eedc83c4efa6033f96d1ac8ea38fb6660 (patch) | |
tree | 5aa584fadffdefee49c08a201b76f5c732e8f6fb /platform.py | |
parent | e72586b6bd906af32b42aee5c98a06acf539e3b9 (diff) | |
download | anaconda-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.py | 2 |
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")) |