The enclosing if statement is 'if not encrypted' so 'else' and
'elif encrypted' are eqivalent.
Signed-off-by: mulhern <amulhern(a)redhat.com>
---
pyanaconda/ui/gui/spokes/custom.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 18241b8..e98c0e8 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -754,7 +754,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
device = device.slave
selector.device = device
self._update_device_in_selectors(old_device, device)
- elif encrypted:
+ else:
log.info("applying encryption to %s", device.name)
old_device = device
new_fmt = getFormat("luks", device=device.path)
--
1.8.3.1
Show replies by date
The enclosing if statement is 'if not encrypted' so
'else' and
'elif encrypted' are eqivalent.
Looks good.
- Chris