[master 1/3] Simplify LUKS.status() property.
mulkieran
installerbot-noreply at redhat.com
Thu Mar 19 13:16:40 UTC 2015
From: mulhern <amulhern at redhat.com>
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/formats/luks.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/blivet/formats/luks.py b/blivet/formats/luks.py
index a5abc4d..3c9c183 100644
--- a/blivet/formats/luks.py
+++ b/blivet/formats/luks.py
@@ -156,9 +156,7 @@ def configured(self):
@property
def status(self):
- if not self.exists or not self.mapName:
- return False
- return os.path.exists("/dev/mapper/%s" % self.mapName)
+ return self.exists and self.mapName and os.path.exists("/dev/mapper/%s" % self.mapName)
def setup(self, **kwargs):
""" Open the encrypted block device.
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/55b6802cc69ea2b81a729c679ba8b7891b4e2589
More information about the anaconda-patches
mailing list