Don't delete root instance node of indexes when deleting empty index instance nodes.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user