Commit 7c5abcae authored by Iustin Pop's avatar Iustin Pop
Browse files

Small simplification in MapLVsByNode

We don't need to pre-create the node entries in lvmap, since they will
be created at recursion time.

Reviewed-by: ultrotter
parent de12473a
......@@ -587,12 +587,6 @@ class Instance(TaggableObject):
elif dev.dev_type in constants.LDS_DRBD:
if dev.logical_id[0] not in lvmap:
lvmap[dev.logical_id[0]] = []
if dev.logical_id[1] not in lvmap:
lvmap[dev.logical_id[1]] = []
if dev.children:
self.MapLVsByNode(lvmap, dev.children, dev.logical_id[0])
self.MapLVsByNode(lvmap, dev.children, dev.logical_id[1])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment