[PATCH 7/7] Don't return the passphrase from hasKey. Should return a boolean.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/formats/luks.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/formats/luks.py b/storage/formats/luks.py
index 880f652..ea3e3d2 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
-- 
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux