Commit 66951428 authored by Romain Courteaud's avatar Romain Courteaud

slapos_upgrader: rename broken resilient/import software types

parent c765b01f
......@@ -98,6 +98,15 @@ while instance_to_check_list:
# Check sub instances only if parent is ok
instance_to_check_list.extend(instance.getSuccessorValueList())
elif (instance.getSourceReference() in ['resilient', 'kvm-resilient', 'import', 'kvm-import', 'runner-import']):
# Do not migrate resiliency subinstances
# recreate the root instance, which does not contain user date, instead
instance_tree.setSuccessorValueList(instance_tree.getSuccessorValueList() + instance.getSuccessorValueList())
instance_to_check_list.extend(instance.getSuccessorValueList())
instance.setSuccessorValueList([])
# Do not destroy yet, to prevent any data deletion mistake
instance.SoftwareInstance_renameAndRequestStop()
# Trigger migration
for instance_virtual_master_relative_url in remote_virtual_master_dict:
instance_tree_virtual_master.Project_checkSiteMigrationCreateRemoteNode(
......
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