[PATCH 1/3] Fix some indentation in the disklabel initialization block.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/devicetree.py |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 673ebe3..9c3722b 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1297,18 +1297,18 @@ class DeviceTree(object):
                                device=device.path,
                                exists=not initlabel)
         except InvalidDiskLabelError:
-                # if we have a cb function use it. else we ignore the device.
-                if initcb is not None and initcb():
-                    format = getFormat("disklabel",
-                                       device=device.path,
-                                       exists=False)
-                else:
-                    self._removeDevice(device)
-                    if isinstance(device, DMRaidArrayDevice):
-                        # We should ignore the dmraid members as well
-                        self.addIgnoredDisk(device.raidSet.name)
-                    self.addIgnoredDisk(device.name)
-                    return
+            # if we have a cb function use it. else we ignore the device.
+            if initcb is not None and initcb():
+                format = getFormat("disklabel",
+                                   device=device.path,
+                                   exists=False)
+            else:
+                self._removeDevice(device)
+                if isinstance(device, DMRaidArrayDevice):
+                    # We should ignore the dmraid members as well
+                    self.addIgnoredDisk(device.raidSet.name)
+                self.addIgnoredDisk(device.name)
+                return
         else:
             if not format.exists:
                 # if we just initialized a disklabel we should schedule
-- 
1.6.0.6

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux