[blivet:rhel7/master 1/5] Change "if <condition>:" to "else:" for clarity (#1076055)

mulhern amulhern at redhat.com
Thu Sep 25 18:03:32 UTC 2014


Related: rhbz#1076055

Signed-off-by: mulhern <amulhern at 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 950f2f0..e5202d2 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1745,7 +1745,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
                     else:
                         self.add_new_selector(device)
 
-        if not do_reformat:
+        else:
             # Set various attributes that do not require actions.
             if old_label != label and hasattr(device.format, "label") and \
                validate_label(label, device.format) == LABEL_OK:
-- 
1.9.3



More information about the anaconda-patches mailing list