Fix typo and set mpaths' sysfs path before querying udevdb. (#620712)
This is for rhel6-branch and for master. It's a follow-on to my recent set
of filtering/mpath patches.
---
storage/devicetree.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/storage/devicetree.py b/storage/devicetree.py
index a077e93..b688391 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -2026,8 +2026,9 @@ class DeviceTree(object):
for mp in mpaths:
log.info("adding mpath device %s" % mp.name)
mp.setup()
- mp_info = udev_get_block_device(mp.sysfs_path)
- if self.isIgnored(mp_info):
+ mp.updateSysfsPath()
+ mp_info = udev_get_block_device(mp.sysfsPath)
+ if mp_info is None or self.isIgnored(mp_info):
mp.teardown()
continue
--
1.7.1.1
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|