[PATCH 1/2] Fix typo in mpath support.

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

 



rs.name is obviously copy-pasted from dmraid code.  Not sure why this
wasn't hit before during testing, but it can't possibly be correct, and
it gives a traceback.
---
 storage/devicetree.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 520381f..f738922 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1461,7 +1461,7 @@ class DeviceTree(object):
 
             initlabel = False
             if not self.clearPartDisks or \
-                    rs.name in self.clearPartDisks:
+                    name in self.clearPartDisks:
                 initlabel = self.reinitializeDisks
                 for protected in self.protectedDevNames:
                     disk_name = re.sub(r'p\d+$', '', protected)
-- 
1.6.4

_______________________________________________
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