[blivet:master 03/17] Simplify setting options variable.

mulhern amulhern at redhat.com
Tue Jan 6 20:38:05 UTC 2015


Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/__init__.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/blivet/__init__.py b/blivet/__init__.py
index e785053..f443dc3 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -2195,9 +2195,7 @@ class CryptTab(object):
             if not key_file:
                 key_file = "none"
 
-            options = device.format.options
-            if not options:
-                options = ""
+            options = device.format.options or ""
 
             self.mappings[device.format.mapName] = {"device": device,
                                                     "keyfile": key_file,
-- 
1.9.3



More information about the anaconda-patches mailing list