summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2010-01-26 13:42:26 -0600
committerDavid Lehman <dlehman@redhat.com>2010-02-05 12:23:53 -0600
commit8aab17aef5817bb2cb0497781f4c59de880816ba (patch)
tree08998e86b64855fdd097c85db72e4659676ef53f /storage
parent6acebd670d9e71cd2765429e504bdaae2b63b302 (diff)
downloadanaconda-8aab17aef5817bb2cb0497781f4c59de880816ba.tar.gz
anaconda-8aab17aef5817bb2cb0497781f4c59de880816ba.tar.xz
anaconda-8aab17aef5817bb2cb0497781f4c59de880816ba.zip
Don't return the passphrase from hasKey. Should return a boolean.
Diffstat (limited to 'storage')
-rw-r--r--storage/formats/luks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/formats/luks.py b/storage/formats/luks.py
index 880f652b3..ea3e3d240 100644
--- a/storage/formats/luks.py
+++ b/storage/formats/luks.py
@@ -134,7 +134,7 @@ class LUKS(DeviceFormat):
@property
def hasKey(self):
- return (self.__passphrase or
+ return ((self.__passphrase not in ["", None]) or
(self._key_file and os.access(self._key_file, os.R_OK)))
@property