Don't delete root instance node of indexes when deleting empty index instance nodes.

This commit is contained in:
Roberto Rosario
2015-01-27 19:50:03 -04:00
parent 20a9d8508c
commit 67a6ffc246

View File

@@ -86,6 +86,6 @@ def task_delete_empty_index_nodes_recursive(instance_node):
# if there are no children, delete node and check parent for the # if there are no children, delete node and check parent for the
# same conditions # same conditions
parent = instance_node.parent parent = instance_node.parent
instance_node.delete()
if parent: if parent:
instance_node.delete()
task_delete_empty_index_nodes_recursive(parent) task_delete_empty_index_nodes_recursive(parent)