FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 02-05-2010, 07:05 AM
Hans de Goede
 
Default Don't return the passphrase from hasKey. Should return a boolean.

Ack.

On 02/05/2010 08:07 AM, David Lehman wrote:

---
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


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

Thread Tools




All times are GMT. The time now is 04:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org