Commit 387e49e2 authored by Romain Courteaud's avatar Romain Courteaud

slapos_upgrader: trigger instance tree migration

parent bd7e8725
......@@ -18,7 +18,7 @@ if last_affectation_list and last_affectation_list[0].project_uid:
not_migrated_instance_tree_dict[instance_tree_relative_url] = {
'title': instance_tree.getTitle(),
'slap_state': instance_tree.getSlapState(),
'destination_section': instance_tree.getDestinationSection(),
'destination_section': instance_tree.getDestinationSection(None),
'project_relative_url': project_relative_url,
'alive_instance_list': []
}
......@@ -30,6 +30,8 @@ for sql_instance in portal.portal_catalog(specialise__uid=instance_tree.getUid()
# as, there is no way to know where it has been allocated previously
if (not_migrated_instance_tree_dict[instance_tree_relative_url]['slap_state'] == 'destroy_requested') and \
(len(not_migrated_instance_tree_dict[instance_tree_relative_url]['alive_instance_list']) == 0) and \
(not_migrated_instance_tree_dict[instance_tree_relative_url]['project_relative_url'] is None):
(not_migrated_instance_tree_dict[instance_tree_relative_url]['project_relative_url'] is None) and \
(not_migrated_instance_tree_dict[instance_tree_relative_url]['destination_section'] is not None):
instance_tree.getDestinationSectionValue().Person_checkSiteMigrationCreatePersonalVirtualMaster([instance_tree_relative_url])
not_migrated_instance_tree_dict.pop(instance_tree_relative_url)
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