[rhel6-branch] Fix KeyError in devicetree. (#1225469)

Samantha N. Bueno sbueno+anaconda at redhat.com
Tue Jun 2 13:50:39 UTC 2015


This occurred during default installation with a previous thinp
install.

Resolves: rhbz#1225469
---
 storage/devicetree.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index d0a2509..8d1ed5f 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1634,7 +1634,7 @@ class DeviceTree(object):
                 lv_name = re.sub(r'_[tr]meta.*', '', lv_name[1:-1])
                 name = "%s-%s" % (vg_name, lv_name)
                 addRequiredLV(name, "failed to look up raid lv")
-                raid[name]["meta"] += lv_size
+                raid[lv_name]["meta"] += lv_size
                 return
             elif lv_attr[0] == 'l':
                 # log volume
-- 
2.1.0



More information about the anaconda-patches mailing list